CN117998008A - Method for adjusting call sound, electronic equipment and storage medium - Google Patents

Method for adjusting call sound, electronic equipment and storage medium Download PDF

Info

Publication number
CN117998008A
CN117998008A CN202211332686.5A CN202211332686A CN117998008A CN 117998008 A CN117998008 A CN 117998008A CN 202211332686 A CN202211332686 A CN 202211332686A CN 117998008 A CN117998008 A CN 117998008A
Authority
CN
China
Prior art keywords
user
call
electronic equipment
earphone
answering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211332686.5A
Other languages
Chinese (zh)
Inventor
吴满意
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211332686.5A priority Critical patent/CN117998008A/en
Publication of CN117998008A publication Critical patent/CN117998008A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The application provides a call sound adjusting method, electronic equipment and a storage medium, and relates to the field of mobile terminals. The method for adjusting the call sound in the application comprises the following steps: if the electronic equipment is detected to be in a call state, acquiring a hole blocking state of a receiver in the electronic equipment and/or acquiring answering data of a user, wherein the hole blocking state of the receiver comprises: the ratio of the area where the earpiece is blocked to the area covered by the earpiece; the answering data comprises: identity information of the user; and adjusting the tone quality of the call sound according to the hole blocking state of the earphone in the electronic equipment and/or the answering data of the user. By adopting the method of the application, the call sound can be adjusted without manual adjustment of the user, and the adjusted call sound accords with the habit of the user for answering the call, thereby improving the call quality of the electronic equipment.

Description

Method for adjusting call sound, electronic equipment and storage medium
Technical Field
The present application relates to the field of mobile terminals, and in particular, to a method for adjusting a call sound, an electronic device, and a storage medium.
Background
With the continuous development of mobile phones, the call function is still one of the basic functions of mobile phones. The user can adjust the loudness of the call sound of answering by pressing the volume key of the mobile phone to meet the call demand.
However, the manner in which the user improves the call sound by manually pressing the volume key requires manual adjustment by the user, and increases the operation of the user when the user calls, and also reduces the call quality of the mobile phone.
Disclosure of Invention
In order to solve the technical problems, the application provides a call sound adjusting method, electronic equipment and a storage medium, so that call sound can be adjusted without manual adjustment of a user, and the adjusted call sound accords with the habit of receiving a call of the user, thereby improving the call quality of the electronic equipment.
In a first aspect, the present application provides a method for adjusting a call sound, which is applied to an electronic device, and includes: if the electronic equipment is detected to be in a call state, acquiring a hole blocking state of a receiver in the electronic equipment and/or acquiring answering data of a user, wherein the hole blocking state of the receiver comprises: the ratio of the area where the earpiece is blocked to the area covered by the earpiece; the answering data comprises: identity information of the user; and adjusting the tone quality of the call sound according to the hole blocking state of the earphone in the electronic equipment and/or the answering data of the user.
Thus, the electronic equipment can adjust the tone quality of the call sound through the hole blocking state of the earphone without manual adjustment of a user or adjust the tone quality of the call sound through answering data of the user; the answering data can reflect the personalized information of the user for answering the call, and the tone quality of the call sound can be adjusted according to the personalized requirements of the user for answering the call through the answering data of the user, so that the adjusted call sound better meets the answering requirements of the user. The electronic equipment can also adjust the tone quality of the call sound according to the hole blocking state of the earphone and the answering data of the user, and the accuracy of determining the personalized hearing demand of the user can be further improved due to the fact that the type of the data for determining the personalized hearing demand of the user is increased, so that the tone quality of the call sound of the electronic equipment can be further improved.
According to a first aspect, obtaining a hole blocking state of an earpiece in an electronic device includes: acquiring the frequency corresponding to the maximum acoustic resistance of the earphone; and determining the plugging state of the earphone according to the frequency corresponding to the maximum acoustic resistance of the earphone and the stored first corresponding relation, wherein the first corresponding relation is used for indicating the corresponding relation between the frequency corresponding to the maximum acoustic resistance of the earphone and the plugging state of the earphone.
Therefore, the size of the blocked area of the earphone can be reflected by the acoustic resistance, and the state of blocking the hole of the earphone can be rapidly and accurately determined through the acoustic resistance information.
According to the first aspect, the blocking state of the earpiece further includes: the first shielding direction is used for indicating the area, blocked by the receiver, away from the first frame of the electronic equipment, and the second shielding direction is used for indicating the area, blocked by the receiver, away from the second frame of the electronic equipment; the method further comprises the steps of: acquiring a first relative position between an earphone and an ear canal opening of a user; and determining the shielding direction of the receiver according to the first relative position.
Like this, electronic equipment (like the cell-phone) can confirm the shielding direction of earphone through obtaining the first relative position between earphone and the user's the ear canal mouth, because shielding direction can influence the sound of earphone broadcast, consequently, confirm the shielding direction of earphone, be favorable to further improving the adjustment to the tone quality of conversation sound.
According to a first aspect, obtaining a first relative position between an earpiece and an ear canal opening of a user comprises: acquiring a first position of an earphone in electronic equipment; acquiring a second position of an ear canal opening of a user relative to electronic equipment; a first relative position is determined based on the first position and the second position. Therefore, the first relative position of the ear canal opening relative to the receiver can be quickly determined through the position of the receiver in the electronic equipment and the position of the ear canal opening relative to the electronic equipment, and the ratio of the area where the receiver is shielded to the area covered by the receiver can be conveniently determined based on the first relative position.
According to a first aspect, obtaining a second position of an ear canal opening of a user relative to an electronic device comprises: when the electronic equipment is detected to be in a call state, detecting the pose of the electronic equipment; determining the gesture of a user for answering a call according to the pose of the electronic equipment; and determining a second position of the ear canal opening of the user relative to the electronic equipment according to the gesture of the user for answering the call and the stored second corresponding relation, wherein the second corresponding relation is used for indicating the relation between the gesture of the user for answering the call and the position of the ear canal opening of the user relative to the electronic equipment.
Therefore, the position of the ear canal opening relative to the receiver can be accurately determined by detecting the pose of the electronic device and determining the pose of the user for answering the call in the example.
According to a first aspect, determining a gesture of a user to answer a call according to a pose of an electronic device includes: acquiring first proximity light detected by a proximity light sensor in the electronic equipment; if the first approaching light is detected to be larger than the approaching light threshold value, a first angle between the current pose of the electronic equipment and a standard pose is obtained, wherein the standard pose is a pose in which the long axis of the electronic equipment is parallel to a straight line where the height of a user is located; if the first angle is detected to be in the first range, determining a gesture of answering the call by the user by using the left hand; if the first angle is detected to be in the second range, determining that the user takes a right-hand gesture of answering the call.
Thus, if the first approaching light is detected to be larger than the approaching light threshold value, the situation that the shielding object approaches the mobile phone is indicated; under the condition, whether the first angle is in the first range or the second range is detected, whether the user uses the left hand to answer the phone or the right hand to answer the phone is determined, invalid judgment can be reduced, judging steps are reduced, meanwhile, the answering gesture of the user is judged only under the condition that a shielding object is close to the mobile phone, judging conditions are increased, and the accuracy of judging the answering of the user can be improved.
According to a first aspect, the first range is 10 degrees to 90 degrees; the second range is-10 degrees to-90 degrees, wherein the positive direction of the angle is the counterclockwise rotation direction of the electronic equipment from the standard pose in the first plane, the negative direction of the angle is the clockwise rotation direction of the electronic equipment from the standard pose in the first plane, and the first plane is a plane surrounded by the long axis and the short axis of the electronic equipment. Thus, the electronic equipment can quickly determine the gesture of the user for answering the call through the first range and the second range.
According to a first aspect, obtaining acoustic resistance information of an earpiece includes: and acquiring the current and the voltage of the earphone, and determining acoustic resistance information. Thus, the electronic equipment can accurately acquire the acoustic resistance information by detecting the current and the voltage of the earphone.
According to a first aspect, according to a state of blocking a hole of an earpiece in an electronic device, adjusting a quality of a call sound includes: acquiring first sound effect data matched with the hole blocking state of the earphone, wherein the first sound effect data comprises the following first parameters: loudness and/or timbre; and adjusting the tone quality of the call sound according to the first parameter in the first sound effect data.
Thus, the first sound effect data corresponding to the different hole blocking states are provided, the tone quality of the call sound is adjusted according to the first sound effect data corresponding to the hole blocking states, and the adjusted call sound can be made up for the problem that the sound is choked and distorted due to hole blocking.
According to a first aspect, the identity information of the user comprises at least two of the following characteristic information: gender information, age information, race information, nationality information, skin color information, voice information, or face image information of the user. Thus, through the user identity information, the personalized call requirement of the user can be acquired.
According to a first aspect, obtaining identity information of the user includes: the identity information of the user is obtained from a user account registered by the user, wherein the user account is an account of the user using the electronic equipment. Thus, the identity information of the user can be quickly and accurately acquired.
According to a first aspect, the answering data further includes: hearing sensitivity of the user; acquiring sensitivity of a user's hearing, comprising: when the electronic equipment is in a call state, detecting the pose of the electronic equipment; determining the gesture of a user for answering a call according to the pose of the electronic equipment; and determining and acquiring the hearing sensitivity of the ear matched with the gesture of the user for answering the call according to the gesture of the user for answering the call. Thus, through the pose of the electronic equipment, the pose of the user for answering the call can be determined, and further, the hearing sensitivity of the ear matched with the pose of the user for answering the call can be accurately determined, so that the parameter for adjusting the tone quality can be accurately provided later.
According to a first aspect, according to answering data of a user, adjusting a tone quality of a call sound includes: acquiring a second parameter matched with each feature in the answering data; and according to each second parameter and the correction weight corresponding to each second parameter, adjusting the tone quality of the call sound. In this way, the answering data contains a plurality of features, each feature has a matched second parameter, and the tone quality of the call sound can be adjusted based on the correction weight of each second parameter, so that the adjusted call sound accords with the answering data of the user.
According to a first aspect, according to a plugging state of a receiver in an electronic device and answering data of a user, adjusting a tone quality of a call sound includes: acquiring first sound effect data matched with the hole blocking state of the earphone, wherein the first sound effect data comprises the following steps of: loudness and/or timbre; obtaining a second parameter matched with each feature in the answering data, the second parameter comprising: loudness and/or timbre; and adjusting the tone quality of the call sound according to the first parameter, the correction weight of the first parameter, each second parameter and the correction weight of each second parameter in the first sound effect data.
Therefore, the electronic equipment combines the hole blocking state of the earphone and the answering data of the user, can more accurately determine the tone quality requirement of the conversation sound conforming to the use habit of the user, and adjusts the conversation sound according to the tone quality requirement of the conversation sound, so that the adjusted conversation sound conforms to the answering habit of the user, the manual adjustment of the user is not needed, the adjusted conversation sound is not limited to the adjustment of the loudness, and the conversation quality of the electronic equipment is further improved.
According to the first aspect, the blocking state of the earpiece further includes: a first shielding direction and a second shielding direction; acquiring a hole blocking state of a receiver in electronic equipment, comprising: acquiring first acoustic resistance information of an earphone; and determining the plugging state of the earphone according to the first acoustic resistance information and the stored third corresponding relation, wherein the third corresponding relation is used for indicating the corresponding relation between the acoustic resistance information of the earphone and the plugging state of the earphone. Therefore, the plugging state of the earphone can be rapidly determined through the third corresponding relation, and the plugging state of the earphone is not required to be determined through the pose of the user, so that the speed of determining the plugging state of the earphone is high.
In a second aspect, the present application provides an electronic device comprising: a memory and a processor, the memory coupled to the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the method of call sound adjustment as in any of the first aspect and the first aspect.
The second aspect implementation manner corresponds to any implementation manner of the first aspect and the first aspect, respectively. The technical effects corresponding to the implementation manner of the second aspect may be referred to the technical effects corresponding to the above first aspect and any implementation manner of the first aspect, which are not described herein.
In a third aspect, the present application provides a computer readable medium storing a computer program, where the computer program when executed on an electronic device causes the electronic device to perform the method for adjusting a call sound corresponding to any implementation manner of the first aspect or the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scene of adjusting a call sound, which is exemplarily shown;
Fig. 2 is a schematic structural view of an exemplary electronic device;
FIG. 3 is a schematic software architecture diagram of an exemplary electronic device;
FIG. 4 is a flow chart illustrating a method of call sound adjustment;
Fig. 5 is a flowchart illustrating an exemplary method for adjusting the quality of a call sound by an electronic device;
FIG. 6 is a schematic diagram of an exemplary acoustic resistance information;
FIG. 7 is a schematic diagram of the position of an exemplary earpiece in an electronic device;
FIG. 8 is a schematic diagram illustrating various poses of an electronic device;
fig. 9 is a schematic view of an exemplary ear canal opening and earpiece;
fig. 10 is a plot of the frequency response of the played sound in three plugged states of the exemplary earpiece;
fig. 11 is a flowchart exemplarily showing a process of adjusting the quality of a call sound according to identity information of a user;
FIG. 12 is a schematic interface diagram of an exemplary user account;
Fig. 13 is a flowchart schematically showing the adjustment of the quality of the call sound according to the state of the telephone receiver blocking the hole and the answering data of the user.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The electronic device in the embodiment of the application can be an electronic device with a call function, such as a smart watch, a mobile phone, a tablet personal computer and the like. The embodiment of the application is not limited to the specific form of the electronic equipment. For convenience of explanation, the electronic device is exemplified as a smart phone hereinafter.
In the process of communication, the user can adjust the communication sound through pressing the volume key, so as to meet the communication requirement. As shown in fig. 1, fig. 1 is a schematic view illustrating a scene of adjusting a call sound. The user uses the mobile phone 100 to communicate with the user of the opposite terminal device, if the local terminal user finds that the communication sound is too loud, the loudness of the communication sound needs to be reduced, and the local terminal user can reduce the loudness of the current communication sound by pressing the "volume" key 101. If the local user detects that the call sound is small in the next call process, the loudness of the call sound can be improved by pressing the "volume" key 101. At present, the loudness of the call sound can be adjusted by a user according to the needs of the user, but because the objects of each call are different, the hearing sensitivity of the ear receiving the call is different, the user needs to adjust the loudness of the call sound by himself, the operation steps of the user are increased, and the call function is not beneficial to use. For example, the hearing sensitivity of the left ear and the hearing sensitivity of the right ear of the user are different, and when the user answers by different ears in the process of answering the same phone, the call volume also needs to be manually adjusted, so that the call quality of the mobile phone is reduced.
In some scenes, old people have a poor hearing, and in a call, a situation that a call sound is small or the call sound is inaudible (such as noise and the like) is easy to occur. In addition, as the service time of the mobile phone increases, the call sound of the mobile phone also becomes small or noise appears, and in the two scenes, the user can improve the tone quality of the call sound without other ways except for adjusting the loudness of the call sound, so that the call quality of the electronic equipment is reduced.
The embodiment of the application provides electronic equipment, which can adjust the tone quality of the current call sound according to the hole blocking state of an earphone in the electronic equipment or the answering data of a user or according to the hole blocking state of the earphone in the electronic equipment and the answering data of the user, thereby improving the call quality of the electronic equipment, reducing the operation steps of the user and further improving the call experience of the user.
Fig. 2 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. It should be understood that the electronic device 100 in fig. 2 is only one example of an electronic device, and that the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have different component configurations. The various components shown in fig. 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
Fig. 3 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application.
The layered architecture of the electronic device 100 divides the software into several layers, each with a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into three layers, an application layer, an application framework layer and a kernel layer from top to bottom. It will be appreciated that the layers in the software structure of fig. 3 and the components contained in the layers do not constitute a particular limitation of the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer layers than shown and may include more or fewer components per layer, as the application is not limited.
As shown in fig. 3, the application layer may include a series of application packages. The application package may include applications for conversation, social networking, map, WLAN, music, short messages, gallery, navigation, bluetooth, games, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layer may include a window manager, resource manager, content provider, view system, phone manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
It will be appreciated that the layers and components contained in the layers in the software structure shown in fig. 3 do not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer layers than shown and may include more or fewer components per layer, as the application is not limited.
Fig. 4 is a flow chart illustrating a method of call sound adjustment. The method for adjusting the call sound is executed by electronic equipment, such as a mobile phone, a smart watch and the like. In this example, the electronic device is illustrated by taking a mobile phone as an example. The call sound adjusting method comprises the following steps:
Step 401: if the electronic equipment detects that the electronic equipment is in a call state, acquiring a hole blocking state of a receiver in the electronic equipment and/or acquiring answering data of a user.
Specifically, the electronic device may detect a current plugging state of the earpiece, where the plugging state of the earpiece includes: the ratio of the area of the earpiece that is blocked to the area covered by the earpiece. The electronic equipment can determine the plugging state of the earphone by detecting the acoustic resistance information of the earphone. The greater the ratio of the area covered by the earpiece to the area covered by the earpiece, the more clumsy the earpiece plays. Therefore, the electronic equipment can determine the mode of adjusting the communication sound according to the hole blocking state of the earphone.
In some embodiments, the electronic device may further obtain answering data of the user, where the answering data includes: identity information of the user. The identity information of the user may include one or more of the following: gender information, age information, race information, nationality information, skin color information, voice information, or face image information of the user. The electronic equipment can determine the requirement of the user on the voice quality of the call by analyzing the identity information of the user, for example, the electronic equipment can determine the requirement of the user on the loudness of the voice of the call by age information of the user; the electronic device may also determine a user's voice gesture, such as left ear or right ear, for a conversation through the user's international information. The electronic device may also determine the user's need for loudness of call sounds by way of the skin tone information. Optionally, the user's listening data may also include the user's hearing sensitivity.
In some embodiments, the electronic device may obtain a plugged state of the earpiece and answer data of the user.
Step 402: and the electronic equipment adjusts the tone quality of the call sound according to the hole blocking state of the earphone in the electronic equipment and/or the answering data of the user.
Specifically, the mobile phone can store frequency response curves corresponding to different hole blocking states of the earphone; when the mobile phone obtains the plugging state of the earphone, the frequency response curve of the current call is obtained according to the plugging state of the earphone and the stored frequency response curves corresponding to different plugging states. The electronic equipment can determine and adjust parameters of the call sound according to the stored standard frequency response curve and the frequency response curve corresponding to the current hole blocking state, and adjust the tone quality of the call sound according to the determined parameters. For example, the mobile phone can adjust the frequency response curve corresponding to the current hole blocking state to reduce the difference between the frequency response curve corresponding to the current hole blocking state and the standard frequency response curve.
Optionally, the mobile phone may further obtain each first parameter in the first sound effect data of the call sound matched with the hole blocking state according to the hole blocking state of the earpiece, and adjust the tone quality of the call sound according to the first parameter. The first parameters included in the first sound effect data may be: loudness and/or timbre.
In one example, the mobile phone may also obtain a second parameter matching with the user's answering data, and adjust the quality of the call sound according to the obtained second parameter.
In one example, if the electronic device obtains the plugging state of the earpiece and the answering data of the user, the electronic device may obtain a first parameter of the call sound matched with the plugging state and a second parameter matched with the answering data of the user. The electronic device may adjust the call sound according to the first parameter, the correction weight corresponding to the first parameter, each second parameter, and the correction weight corresponding to each second parameter.
In this example, the electronic device may adjust the quality of the call sound through the hole blocking state of the earpiece, without requiring manual adjustment by the user, or adjust the quality of the call sound through the answering data of the user; the answering data can reflect the personalized information of the user, so that the tone quality of the call sound is adjusted through the answering data of the user, and the adjusted call sound meets the answering requirement of the user. The electronic equipment can also adjust the tone quality of the call sound according to the hole blocking state of the earphone and the answering data of the user, and the accuracy of determining the personalized hearing demand of the user can be further improved due to the fact that the type of the data for determining the personalized hearing demand of the user is increased, so that the tone quality of the call sound can be further improved.
The process of correcting the call sound will be specifically described as shown in fig. 5, and fig. 5 shows a flowchart of correcting the call sound by the electronic device according to the state of the earpiece being blocked.
Step 501: the electronic device obtains a product ID (Industrial Design, "Industrial design") design.
Specifically, if the mobile phone detects that the mobile phone is in a call state, the mobile phone can acquire the product ID design of the mobile phone. Optionally, the mobile phone can detect whether the currently displayed interface is a call interface, and judge whether the mobile phone is in a call state according to the detection result. For example, if the mobile phone detects the displayed call interface, it is determined that the current mobile phone is in a call state. It can be understood that the mobile phone can also adopt other detection modes to judge whether the current mobile phone is in a call state.
Alternatively, the electronic device (e.g., a mobile phone) may detect whether the electronic device is in a call state according to a preset time interval, where the preset time interval may be a duration of less than 1 minute, such as 5 seconds, 10 seconds, 20 seconds, 30 seconds, and so on. The preset time interval may also be a duration of greater than 1 minute or equal to 1 minute.
In this example, the electronic device is illustrated by taking a mobile phone as an example. The mobile phone can detect the call state of the mobile phone according to a preset time interval, and the preset time interval is exemplified by 10 seconds. There are various ways in which the mobile phone detects whether it is currently in a call state, for example, the mobile phone may monitor a call state, where the call state includes: idle state, ringing and talking.
It should be noted that, the local mobile phone may establish a call with other mobile phones through the SIM card, and the local mobile phone may also establish a network call with other devices through a network (such as a call function/video function in social software), or may also play voice information in a chat application interface.
The mobile phone product ID design comprises: the earpiece is in a first position in the handset. The handset obtains a first position of the earpiece in the handset. The earpiece positions in different models of handsets are different, as shown in fig. 7a, which shows the upper half 701 of the handset, which is the part with the camera. The center of the earpiece 702 may be centered on the short axis of the handset, as shown in fig. 7 a. If the camera of the handset is positioned at the center of the short axis of the handset, the center of the earpiece 704 may be positioned at amm a from the camera 705, where a is less than 1/2 the length of the short axis of the handset, as shown in fig. 7 b. The chip of the earphone 704 may be shown in fig. 7b, where the first frame 7031 and the second frame 7032 of the upper half 703 of the mobile phone are long axes of the mobile phone.
Alternatively, the earpiece chip may take other shapes, such as circular, oval. The product ID design of the handset may also include information about the size of the handset chip.
Optionally, standard acoustic resistance information of the earphone can be also included in the mobile phone product ID design. The standard acoustic resistance information of the earpiece may be an acoustic resistance of the earpiece when shipped.
In some embodiments, the mobile phone may further store parameters of different sound effects, for example, the mobile phone stores parameters corresponding to 3 different sound effects, which are parameters corresponding to sound effect 1, parameters corresponding to sound effect 2, and parameters corresponding to sound effect 3, respectively. The parameters corresponding to each sound effect may include: loudness and timbre. Parameters corresponding to the sound effects may also include noise floor and distortion information.
Step 502: the electronic device detects the earpiece acoustic resistance.
Specifically, the mobile phone may obtain current acoustic resistance information of the earpiece. The earphone comprises a Smart PA (Intelligent Power amplifier) chip, the Smart PA chip can input feedback of signals, for example, the mobile phone can acquire I/V feedback signals output by the Smart PA chip in the earphone, and current acoustic resistance information of the earphone is acquired through the I/V feedback signals.
Step 503: the electronic device determines a ratio of an area of the earpiece that is obscured to an area covered by the earpiece.
Specifically, the mobile phone can determine the proportion of the area where the earphone is blocked to the area covered by the earphone according to the acoustic resistance information of the earphone. Fig. 6 is a schematic diagram of an exemplary acoustic resistance information. As shown in fig. 6, when the earpiece is in the frequency range of 100Hz to f0 (Hz), the acoustic resistance of the earpiece increases with increasing frequency until the maximum acoustic resistance is reached. The earpiece has a maximum acoustic resistance when the earpiece frequency is f0 (e.g., 800 Hz). The frequency of the acoustic impedance may reflect the ratio of the blocked area of the earpiece to the covered area of the earpiece. In this example, the handset may store a first correspondence between the maximum acoustic impedance correspondence frequency of the earpiece and the ratio of the occluded area of the earpiece to the area covered by the earpiece. For example, when the frequency corresponding to the maximum acoustic resistance of the earphone is between 700Hz and 900Hz, the earphone is in an unoccluded state. When the frequency corresponding to the maximum acoustic resistance of the earphone is greater than 1600Hz, the earphone is completely shielded, and when the frequency corresponding to the maximum acoustic resistance of the earphone is between 1000Hz and 1200Hz, the ratio of the shielded area of the earphone to the area covered by the earphone is 1/2. It will be appreciated that the relationship between the frequency corresponding to the maximum acoustic resistance of the earpiece and the ratio of the blocked area of the earpiece to the area covered by the earpiece is not limited to the ranges recited in this example, as the model numbers of the earpieces are different.
After the mobile phone acquires the acoustic resistance information of the earphone, the maximum acoustic resistance corresponding frequency (marked as f 0) of the earphone is acquired. The mobile phone determines the proportion of the shielded area of the earphone to the area covered by the earphone according to the frequency of the maximum acoustic resistance of the earphone and the first corresponding relation.
In some embodiments, the corresponding relationship between the sound effect and the plugging state of the earphone can be stored in the mobile phone. For example, the handset may store the corresponding sound effect a when the handset is fully occluded; corresponding to the sound effect B when the earphone is in a non-shielded state; and corresponding to the sound effect C when the ratio of the blocked area of the receiver to the area covered by the receiver is 1/2.
After this step 503 is completed, step 506 is performed.
Step 504: the electronic device detects a pose of the electronic device.
Specifically, the mobile phone can detect the pose of the electronic equipment through the sensor. Alternatively, the process may be carried out in a single-stage,
The pose of the electronic device may be detected by a sensor in this example. Alternatively, the sensor may be an acceleration sensor, or may be an acceleration sensor and a gyroscope. The mobile phone can determine a first angle between the current pose and the standard pose of the mobile phone according to the data detected by the sensor; the standard pose is a pose in which the long axis of the electronic device is parallel to the straight line where the height of the user is located. For example, as shown in 8a of fig. 8, the long axis of the mobile phone is denoted by L, and the short axis is denoted by W; if the user is in a standing state, the gesture when the long axis of the mobile phone is parallel to the straight line where the height of the user is located is the standard gesture, as shown in 8 a.
Optionally, the plane in which the first angle is located is a first plane in which a long axis and a short axis of the mobile phone are located, and the first angle may be an angle between the long axis of the mobile phone in the current pose and the long axis of the mobile phone in the standard pose; the first angle may also be an angle between a short axis of the phone in the current pose and a short axis of the phone in the standard pose.
In another embodiment, the handset may also acquire the first proximity light detected by the proximity light sensor. The proximity light sensor may include a Light Emitting Diode (LED) and a light detector. The light emitting diode may be an infrared light emitting diode, for example, as an emitting end proximate to the light sensor. The mobile phone emits infrared light outwards through the light emitting diode. A photodetector (e.g., a photodiode) may be provided proximate to the receiving end of the light sensor. The mobile phone can detect the infrared reflected light from the nearby shielding object by using the light detector, convert the received infrared reflected light into an electric signal and quantify the electric signal to obtain the intensity of the infrared reflected light. The measurement unit of the intensity of the infrared reflected light may be selected according to need, and the measurement unit is used for representing the measurement unit of the intensity of the received infrared light, and may be the measurement unit of the light intensity or the measurement unit of the electric signal obtained through photoelectric conversion, which is not limited in the embodiment of the present invention.
When the mobile phone detects that the first proximity light (i.e., infrared reflected light) is greater than or equal to a preset proximity light threshold, it can be determined that the obstruction is approaching the mobile phone, i.e., it can be determined that the ear of the user is approaching the mobile phone. The near light threshold may be set at 600 to 650 units of measure, such as 630 units of measure for the light threshold. If the mobile phone detects that the first proximity light is smaller than the proximity light threshold, it is determined that no shielding object is close to the mobile phone, namely, it is determined that the ear of the user is not close to the mobile phone.
When the mobile phone detects that the first approaching light is greater than or equal to the approaching light threshold, the mobile phone can determine a first angle between the current pose and the standard pose of the mobile phone according to the data detected by the A+G sensor. If the mobile phone detects that the first approach light is smaller than the approach light threshold, the mobile phone does not execute the determination of the first angle between the current position and the standard position of the mobile phone, and the mobile phone can default that the current mobile phone is in a state of not blocking the hole.
Step 505: the electronic device determines a gesture in which the user answers the call.
Specifically, after the mobile phone obtains a first angle between the current gesture and the standard gesture, the gesture of the user for answering the call can be determined according to the first angle.
In one example, the mobile phone may determine whether the first angle is within a first range, and if the first angle is detected to be within the first range, determine that the user adopts a gesture of left-hand listening, where the first range is 10 degrees to 90 degrees, and the positive direction of the angle is shown in fig. 8, and the electronic device rotates counterclockwise from the standard pose in the first plane. If the first angle is detected to be in the second range, determining that the gesture of answering by the user by using the right hand is adopted, wherein the second range is-10 degrees to-90 degrees, and the negative direction of the angle is the clockwise rotation direction of the electronic equipment from the standard position in the first plane. The electronic device rotates from 0 degrees to a direction of-90 degrees (i.e., from 8a to 8 c) as shown in fig. 8, and the electronic device rotates from 0 degrees to a direction of 90 degrees (i.e., from 8a to 8 b) as shown in fig. 8.
After this step is performed, step 506 is performed. Step 501, step 504 and step 505 may be performed in synchronization with step 502, step 503.
Step 506: the electronic equipment determines the state of plugging the hole of the earphone.
Specifically, in step 503, the ratio of the area where the earpiece is blocked to the area covered by the earpiece is determined, and the mobile phone may further determine, by the auxiliary electronic device, the state of blocking the hole of the earpiece according to the gesture of the user answering the call.
In one example, if the mobile phone determines that the earphone is not blocked according to the acoustic resistance information of the earphone and the first corresponding relation. The mobile phone can accurately determine that the non-shielding object is close to the mobile phone when the mobile phone detects that the first approaching light is smaller than the approaching light threshold value according to the approaching light sensor. The mobile phone can determine that no shielding occurs in the mobile phone currently based on the results of the two determinations, and then the mobile phone can execute the determination that the call sound can be adjusted according to the sound effect parameters corresponding to the shielding-free earphone currently.
In one example, the blocked state of the earpiece further includes a blocking direction (e.g., a first blocking direction and a second blocking direction). The first shielding direction is used for indicating that the area of the receiver shielded is far away from the first frame of the mobile phone, and the second shielding direction is used for indicating that the area of the receiver shielded is far away from the second frame of the mobile phone. The mobile phone can acquire a first relative position between the earphone and the ear canal opening of the user, and determine the shielding direction of the earphone according to the first relative position.
Specifically, the mobile phone acquires a gesture of a user answering a call by using a left hand, and determines a second position of an ear canal opening of the user relative to the electronic device according to the gesture of the user answering the call and a stored second corresponding relation, wherein the second corresponding relation is used for indicating a relation between the gesture of the user answering the call and the position of the ear canal opening of the user relative to the electronic device. The second correspondence may be generated according to an investigation result, for example, an engineer may collect a gesture of a user dialing a phone using a mobile phone of different types and a position of an ear canal opening of the user relative to an earpiece when the user adopts the gesture of dialing the phone, in this example, 1000 people are collected in each group, and 10 mobile phone models may be collected. The engineer can analyze the collected data by using the analysis equipment to obtain an investigation result, if the investigation result is: the hot zone where the user left hands are listening to the call is laterally offset to the right bmm relative to the full amount of users; the hot zone where the user is right-handed to answer the call is laterally to the left bmm relative to the full user. The investigation result can be understood that when the user receives the call with the left hand, the ear canal opening of the user is deviated to the right bmm relative to the central axis of the mobile phone; when a user answers a call with the right hand, the ear canal opening of the user is left bmm relative to the central axis of the mobile phone, the central axis of the mobile phone is perpendicular to the short axis of the mobile phone and parallel to the long axis of the mobile phone, and the central axis of the mobile phone bisects the short axis of the mobile phone, wherein the range of bmm is 6-10 mm, and if b mm can be 8mm. In this example, the position between the central axis of the ear canal opening and the central axis of the mobile phone may refer to the position of the central axis of the ear canal opening and the central axis of the mobile phone. Alternatively, the position of the ear canal opening with respect to the central axis of the handpiece may also be the position of the right side edge of the ear canal opening with respect to the central axis of the handpiece. In this example, the position of the center of the ear canal orifice with respect to the center axis of the handpiece will be described as an example.
The mobile phone can store the investigation result in advance, and the investigation result is the second corresponding relation. And the mobile phone can determine the second position of the ear canal opening of the user relative to the electronic equipment according to the gesture of the user for answering the call and the stored second corresponding relation. For example, the second correspondence is: when a user listens to a call with the left hand, the ear canal opening of the user is deviated to the right bmm relative to the central axis of the mobile phone; when the user answers the call with the right hand, the ear canal opening of the user is deviated to the left bmm relative to the central axis of the mobile phone. When the mobile phone determines that the user answers the call by adopting the left hand, the right bmm of the ear canal opening relative to the central axis of the mobile phone can be determined according to the second corresponding relation.
As shown in fig. 9, the upper half 901 of the mobile phone in fig. 9 includes a camera and a receiver 902 located on the central axis; the dashed line in fig. 9 is used to indicate the central axis of the handpiece; the user adopts the gesture that the left ear was answered the conversation, and left ear 903 is relative to the axis of cell-phone and is close to right bmm, is kept away from the first frame 9012 of cell-phone, is close to second frame 9011. Because the mobile phone can obtain the first position of the earpiece 902 in the mobile phone, the mobile phone can determine the first relative position of the ear canal opening relative to the earpiece according to the first position of the earpiece 902 in the mobile phone and the second position of the user's ear canal opening at bmm on the right with respect to the central axis of the mobile phone. The mobile phone can determine the shielding direction of the receiver according to the first relative position. As shown in fig. 9, the center position of the earphone is deviated to the right amm relative to the central axis of the mobile phone; if the center of the ear canal opening of the user is right bmm with respect to the central axis of the handset, the handset can determine the distance b-a mm between the center of the ear canal opening and the center of the earpiece. Optionally, the mobile phone may determine, according to the size of the earpiece and the size of the preset ear canal opening, that the area of the earpiece blocked by the ear canal opening is far away from the first frame of the mobile phone.
In some embodiments, the mobile phone may also store a third correspondence between the acoustic resistance curve and a plugging state of the earpiece, where the third correspondence is used to indicate a correspondence between acoustic resistance information of the earpiece and the plugging state of the earpiece, and the plugging state includes: the ratio of the area of the earpiece that is blocked to the area covered by the earpiece and the blocking direction of the earpiece (including the first blocking direction and the second blocking direction). The mobile phone acquires first acoustic resistance information of the earphone; and the mobile phone determines the plugging state of the earphone according to the first acoustic resistance information and the stored third corresponding relation. The method does not need to obtain the gesture of the user for answering the call, and reduces the step of determining the hole blocking state.
Step 507: and determining the personalized call tone quality requirement of the user.
Specifically, after the mobile phone obtains the state of plugging the hole of the earphone, first sound effect data matched with the state of plugging the hole can be determined, wherein the first sound effect data comprises the following first parameters: loudness and/or timbre. In this example, the state of plugging the hole may include: the ratio of the area where the receiver is blocked to the area covered by the receiver, or the ratio of the area where the receiver is blocked to the area covered by the receiver and the direction in which the receiver is blocked.
For example, the mobile phone stores first sound effect data matched with each hole blocking state in advance, and in this example, 6 kinds of first sound effect data are stored. Respectively the sound effect data A matched with the hole blocking state A; sound effect data B matched with the hole blocking state B; sound effect data C matched with the hole blocking state C; sound effect data D matched with the hole blocking state D; sound effect data E matched with the hole blocking state E; and sound effect data F matched with the hole blocking state F. The hole blocking state A is as follows: the state that the receiver is not shielded; the hole blocking state B is as follows: a state in which the earpiece is completely blocked; the hole blocking state C is as follows: the earphone is shielded by 1/2, and the shielding direction is the first shielding direction; hole blocking state D: the receiver is shielded by 1/2, and the shielding direction is the second shielding direction. Hole blocking state E: the earphone is shielded by 1/4, and the shielding direction is the first shielding direction; hole blocking state F: the receiver is shielded by 1/4, and the shielding direction is the second shielding direction.
The sound effect data a includes: a parameter X1 of loudness and a parameter Y1 of timbre. The sound effect data B includes: a parameter X2 of loudness and a parameter Y2 of timbre. The sound effect data C includes: a parameter X3 of loudness and a parameter Y3 of timbre. The sound effect data D includes: a parameter X4 of loudness and a parameter Y4 of timbre. The sound effect data E includes: a parameter X5 of loudness and a parameter Y5 of timbre. The sound effect data F includes: a parameter X6 of loudness and a parameter Y6 of timbre.
And the mobile phone acquires sound effect data matched with the hole blocking state according to the hole blocking state of the earphone, and takes the sound effect number matched with the hole blocking state as the personalized conversation tone quality requirement of the user.
Step 508: the electronic device determines a manner of adjusting the quality of the call sound.
Specifically, after the mobile phone obtains the first sound effect data matched with the current hole blocking state, the call sound can be adjusted according to the parameters indicated in the first sound effect data, for example, if the hole blocking state is C, the corresponding sound effect data C (namely, the parameter X3 of loudness and the parameter Y3 of tone); i.e., the quality of the call sound can be adjusted according to the loudness parameter X3 and the tone parameter Y3.
In some embodiments, when the blocked area of the earpiece is larger, the second resonance peak of the frequency response curve of the sound played by the earpiece is shifted, which easily causes problems such as choking, noise, distortion and the like of the sound. As shown in fig. 10, fig. 10 shows the frequency response curves of the played sound in three blocked states of the earpiece.
As shown in fig. 10, C1 is a frequency response curve of a sound played when the earphone is not blocked; c2 is the frequency response curve of the sound played when the earphone is shielded by 1/4; c3 is the frequency response curve of the sound played when the earphone is shielded by 1/2. The second resonance peak of the C2 curve and the C3 curve is shifted to the right compared to the second resonance peak of the C1 curve. That is, the sound played by the earphone is prone to problems such as stuffy, noise and distortion when the earphone is blocked. In this example, the handset may store the corresponding frequency response curves of the handset in different hole blocking states. The mobile phone can acquire a frequency response curve and a standard frequency response curve corresponding to the hole blocking state according to the hole blocking state of the mobile phone. The mobile phone can adjust the corresponding frequency response curve in the hole blocking state according to the standard frequency response curve, for example, the filter coefficient in the earphone is adjusted, so that the frequency response curve in the hole blocking state is close to the standard frequency response curve. The standard frequency response curve may be a C1 curve.
In some embodiments, the mobile phone may further obtain identity information of the user, and adjust the tone quality of the call sound according to the identity information of the user. Fig. 11 is a flowchart schematically illustrating a process of adjusting the quality of a call sound according to identity information of a user, which includes:
step 1101: the electronic device obtains the setting information.
In this example, the electronic device is illustrated by taking a mobile phone as an example. A user may register a user account in a mobile phone, the user account being an account of the user using the mobile phone. Optionally, the user account may include at least two of the following information: user gender information, age information of the user, race information, nationality information, and skin color information.
As shown in fig. 12, the display interface 1201 displays an account number input box, a password input box, a login button 1202, and a registered account number button 1203, as shown in fig. 12 a. The user may perform account registration by clicking on register account button 1203. After the user registers the account, the user may input the account and the password, and click on the login button 1202 to login to the user account. As shown in fig. 12b, the user account interface 1204 includes options 1205 for personal information of the user and options 1206 for hearing tests. The user clicks the option 1205 of personal information, and jumps from the current interface to the interface 1207 of personal information, as shown in 12c of 12, the interface 1207 includes the head portrait information, nationality information, sex information, and age information of the user.
Optionally, in this example, the mobile phone may obtain the user's avatar information from the user account, or may obtain the user's avatar information from other applications, such as a personal album, as in step 1103.
Similar to step 501, the handset may trigger execution of step 1101 upon detecting that the handset is in a talk state.
Step 1102: the electronic device obtains user voice information.
Specifically, because the call habits of each person are different, the acquired call habits of the user can be analyzed through the voice information of the user. For example, the mobile phone acquires the voice information of the user, acquires the loudness of the voice information, and if the loudness is greater than the preset loudness, can determine that the speaking sound of the user is large, and then can determine that the user prefers the talking sound with large loudness when answering the call.
Step 1103: the electronic equipment acquires the user portrait information.
Specifically, the mobile phone may acquire the portrait of the user from the personal album, for example, in the case of acquiring the user authorization, may identify the portrait of the user from the user's album, and acquire a piece of information as the portrait of the user. Alternatively, the handset may instruct the user to upload a portrait image of the user.
Step 1104: the electronic device analyzes age, gender and race information of the user.
Specifically, the mobile phone may determine the quality of the call sound preferred by the user according to each feature in the identity information of the user (such as age, sex and race information of the user). Alternatively, the cellular phone may store the quality parameters of the call sound preferred by the user for each age group and for each age group. For example, the mobile phone obtains the age of 70 years for the user, and stores 3 age groups, which are respectively: age below 48, age between 48 and 68, and age above 68. When the mobile phone detects that 70 years old is in the 3 rd age group, the mobile phone can obtain the tone quality of the call sound corresponding to the 3 rd age group, and if the tone quality of the call sound corresponding to the 3 rd age group includes: the loudness was-9 dB. If the age from the mobile phone user to the user is 20 years old, determining the tone quality of the call sound corresponding to the user as follows: 7dB, wherein the smaller the value of the loudness, the louder the sound. Alternatively, the loudness corresponding to the characteristic information may be determined in accordance with the ITU-TP79 standard, which is a speech quality assessment standard.
Optionally, the mobile phone may store the quality of the call sound preferred by each user corresponding to each character, for example, the loudness of the sound preferred by the user corresponding to the male is larger (e.g., -8 dB); female corresponds to a user with a less loud (e.g., -6 dB) preference.
Alternatively, the cellular phone may store the sound quality of the call sound preferred by the user corresponding to each of the personal information. Similarly, if the identity information of the user also includes other features, the mobile phone may store the quality of the call sound preferred by the user corresponding to each feature.
It should be noted that, the quality of the call sound preferred by the user corresponding to each feature may be obtained by analyzing the big data, or may be obtained by training a large number of samples. The manner of acquiring the sound quality of the call sound of the user preference corresponding to each feature is not limited in this example.
Step 1105: the electronic device plays the sound stimulus signal of adjustable loudness.
In particular, the user's listening data may also include hearing sensitivity. The same user may have different hearing sensitivity at each ear at different times, and the phone may periodically instruct the user to trigger a hearing test in order to ensure accuracy of the acquired hearing sensitivity. The user may select the hearing test function provided by the handset, such as the user clicking on the hearing test option 1206 of fig. 12b, and the handset may play an adjustable loudness sound stimulus signal for the user to determine the user's hearing sensitivity. Alternatively, each ear may be tested separately to obtain the hearing sensitivity of each ear, as the hearing sensitivity of each ear differs for each individual.
Alternatively, the handset may store the results of the user's last hearing test. The order of execution of the steps may precede step 1101, which is triggered by a test operation by the user.
Step 1106: the electronic device determines personalized sound quality preferences and hearing sensitivity matching the user.
In particular, the handset may determine a personalized sound quality preference matching the user based on each identity information. For example, the handset obtains age information (e.g., 28 years) and gender information (e.g., female) of the user. The mobile phone may obtain a second parameter g1 (e.g., loudness is X1) matching the 28 years old, and obtain a second parameter g2 (timbre Y1) matching the gender information. The mobile phone may use each of the obtained second parameters as the personalized sound quality preference of the user, that is, the parameters of the personalized sound quality preference of the user include: the second parameters g1 and g 2. The mobile phone can adjust the call sound according to each second parameter in turn.
Optionally, if the user account does not store age information, the mobile phone may further identify skin texture of the user from the portrait information, so as to determine the age of the user according to the skin texture.
Alternatively, the mobile phone may acquire the hearing sensitivity of the ear matching the gesture of the user answering the call according to the gesture of the user answering the call. Meanwhile, the mobile phone can acquire the tone quality preference matched with the hearing sensitivity. For example, the hearing sensitivity is a1, and sound quality preferences corresponding to the hearing sensitivity include: loudness X1 and tone Y1.
Step 1107: the electronic device determines a user-personalized call quality requirement.
Specifically, the mobile phone can take the voice quality preference matched with each feature in the identity information of the user and the voice quality preference matched with the hearing sensitivity of the user as the personalized call voice quality requirement of the user.
Step 1108: the electronic device determines a manner of adjusting the quality of the call sound.
Specifically, the mobile phone can adjust the call sound according to the requirements of the personalized call tone quality of the user. For example, the mobile phone may obtain a second parameter g1 (e.g., loudness X1) matching the 28 years old, and obtain a second parameter g2 (e.g., loudness X2 and timbre Y1) matching the gender information. The left ear hearing sensitivity of the user is b1, and sound quality preferences corresponding to the hearing sensitivity include: loudness X2 and tone Y.
Optionally, each parameter has a corresponding correction weight, and the call quality can be adjusted according to the correction weight of each parameter. For example, the correction weight corresponding to the second parameter g1 is w1, and the correction weight corresponding to the second parameter g2 is w2; the correction weight w4 corresponds to the sound quality preference of the hearing sensitivity. The current call sound is recorded as S1, the loudness of S1 may be adjusted to (x1+x2×w2), and since the tone in g1 and the tone in g2 are different, the mobile phone may acquire a default tone as the adjusted tone, where the default tone may be a standard tone or a tone set by the user, for example: the user sets the default tone to a clear tone.
Optionally, if the adjusted loudness is detected to be greater than the maximum loudness threshold, the loudness of the call sound is adjusted to the maximum loudness threshold.
In some embodiments, the mobile phone can adjust the tone quality of the call sound according to the plugging state of the earphone and the answering data of the user, and the process is as shown in fig. 13:
Step 1301: the electronic device obtains the product ID design.
Step 1302: the electronic device detects the earpiece acoustic resistance.
Step 1303: the electronic device determines a ratio of an area of the earpiece that is obscured to an area covered by the earpiece.
Step 1304: the electronic device detects a pose of the electronic device.
Step 1305: the electronic device determines a gesture in which the user answers the call.
Step 1306: the electronic equipment determines the state of plugging the hole of the earphone.
Steps 1301 to 1306 are similar to steps 501 to 506, and reference may be made to the description related to steps 501 to 506, and details are not repeated here.
Step 1307: the electronic device obtains the setting information.
Step 1308: the electronic device obtains user voice information.
Step 1309: the electronic equipment acquires the user portrait information.
Step 1310: the electronic device analyzes age, gender and race information of the user.
Step 1311: the electronic device plays the sound stimulus signal of adjustable loudness.
Step 1312: the electronic device determines personalized sound quality preferences and hearing sensitivity matching the user.
Steps 1307-1312 are similar to steps 1101-1106, and reference may be made to the description of steps 1101-1106, which will not be repeated here.
Step 1313: the electronic device determines a user-personalized call quality requirement.
Specifically, the mobile phone can take the first sound effect data corresponding to the hole blocking state of the earphone and the second parameter corresponding to the answering data as the personalized call tone quality requirement of the user.
Step 1314: the electronic device determines a manner of adjusting the quality of the call sound.
Specifically, the mobile phone acquires first sound effect data matched with the hole blocking state of the earphone, wherein the first sound effect data comprises the following first parameters: loudness and/or timbre. The mobile phone acquires a second parameter matched with each feature in the answering data, wherein the second parameter is the following parameter: loudness and/or timbre; and the mobile phone adjusts the tone quality of the call sound according to the first parameter, the correction weight of the first parameter, each second parameter and the correction weight of each second parameter in the first sound effect data.
For example, the mobile phone obtains the plugging state F of the earphone: the earpiece is blocked 1/4 and the blocking direction is the second blocking direction. The sound effect data F corresponding to the hole blocking state F is (for example, a parameter X6 of loudness and a parameter Y6 of tone), and the sound effect data F corresponds to the correction weight w5. The mobile phone may obtain a second parameter g1 (e.g. loudness X1) matching the 28 years old, and obtain a second parameter g2 (e.g. loudness X2, timbre Y1) matching the gender information. The left ear hearing sensitivity of the user is b1, and sound quality preferences corresponding to the hearing sensitivity include: loudness X4, timbre Y2. The weight corresponding to the second parameter g1 is w1, and the weight corresponding to the second parameter g2 is w2; the tone quality preference of the hearing sensitivity corresponds to the weight w4. The current speech sound is denoted as S1, and the loudness of S1 may be adjusted to (x6×w5+x1×w1+x2×w2+x4×w4). Because the tone color in the sound effect data F, the tone color in the g2 and the tone color corresponding to the hearing sensitivity are all different; the mobile phone selects the default tone as the adjusted tone.
In this example, the mobile phone combines the plugging state of the earphone and the answering data of the user at the same time, so that the voice quality requirement of the call voice conforming to the use habit of the user can be determined more accurately, and the call voice is adjusted according to the voice quality requirement of the call voice, so that the adjusted call voice conforms to the answering habit of the user, the user does not need to manually adjust, the adjusted call voice is not limited to the adjustment of the loudness, and the call quality of the mobile phone is further improved.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The present application can be implemented in hardware or a combination of hardware and computer software, in conjunction with the example algorithm steps described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present embodiment also provides a computer storage medium having stored therein computer instructions that, when executed on an electronic device, cause the electronic device to perform the above-described related method steps to implement the method for adjusting a call sound in the above-described embodiment. The storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The present embodiment also provides a computer program product, which when run on a computer, causes the computer to perform the above-mentioned related steps to implement the method for adjusting the call sound in the above-mentioned embodiments.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the application, are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
Any of the various embodiments of the application, as well as any of the same embodiments, may be freely combined. Any combination of the above is within the scope of the application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (17)

1. A method for adjusting call sound, which is applied to an electronic device, comprising:
if the electronic equipment is detected to be in a call state, acquiring a hole blocking state of a receiver in the electronic equipment and/or acquiring answering data of a user, wherein the hole blocking state of the receiver comprises: the ratio of the area where the receiver is shielded to the area covered by the receiver; the answering data comprises: identity information of the user;
and adjusting the tone quality of the call sound according to the hole blocking state of the earphone in the electronic equipment and/or the answering data of the user.
2. The method of claim 1, wherein the obtaining the plugging state of the earpiece in the electronic device comprises:
Acquiring the frequency corresponding to the maximum acoustic resistance of the earphone;
and determining the hole blocking state of the earphone according to the frequency corresponding to the maximum acoustic resistance of the earphone and a stored first corresponding relation, wherein the first corresponding relation is used for indicating the corresponding relation between the frequency corresponding to the maximum acoustic resistance of the earphone and the hole blocking state of the earphone.
3. The method of claim 2, wherein the earpiece aperture blocking state further comprises: a first shielding direction and a second shielding direction, wherein the first shielding direction is used for indicating that the area, which is shielded by the receiver, is far away from a first frame of the electronic equipment, and the second shielding direction is used for indicating that the area, which is shielded by the receiver, is far away from a second frame of the electronic equipment;
The method further comprises the steps of:
Acquiring a first relative position between the earphone and an ear canal opening of the user;
And determining the shielding direction of the receiver according to the first relative position.
4. A method according to claim 3, wherein said obtaining a first relative position between the earpiece and the ear canal orifice of the user comprises:
acquiring a first position of the receiver in the electronic equipment;
acquiring a second position of the ear canal opening of the user relative to the electronic device;
The first relative position is determined from the first position and the second position.
5. The method of claim 4, wherein the obtaining a second position of the user's ear canal orifice relative to the electronic device comprises:
when the electronic equipment is detected to be in a call state, detecting the pose of the electronic equipment;
determining the gesture of the user for answering the call according to the gesture of the electronic equipment;
And determining a second position of the ear canal opening of the user relative to the electronic equipment according to the gesture of the user for answering the call and a stored second corresponding relation, wherein the second corresponding relation is used for indicating the relation between the gesture of the user for answering the call and the position of the ear canal opening of the user relative to the electronic equipment.
6. The method of claim 5, wherein determining the gesture of the user to answer the call based on the pose of the electronic device comprises:
Acquiring first proximity light detected by a proximity light sensor in the electronic equipment;
If the first approaching light is detected to be larger than an approaching light threshold value, a first angle between the current pose of the electronic equipment and a standard pose is obtained, wherein the standard pose is a pose in which a long axis of the electronic equipment is parallel to a straight line where the height of the user is located;
If the first angle is detected to be in the first range, determining a gesture of answering the call by the user by using the left hand;
And if the first angle is detected to be in the second range, determining that the user adopts a right-hand call answering gesture.
7. The method of claim 6, wherein the first range is 10 degrees to 90 degrees; the second range is-10 degrees to-90 degrees, wherein the positive direction of the angle is the anticlockwise rotation direction of the electronic equipment from the standard pose in the first plane, the negative direction of the angle is the clockwise rotation direction of the electronic equipment from the standard pose in the first plane, and the first plane is a plane surrounded by the long axis and the short axis of the electronic equipment.
8. The method of claim 2, wherein the obtaining acoustic resistance information of the earpiece comprises:
and acquiring the current and the voltage of the earphone, and determining the acoustic resistance information.
9. The method of claim 1, wherein adjusting the quality of the call sound according to the plugging state of the earpiece in the electronic device comprises:
Acquiring first sound effect data matched with the hole blocking state of the earphone, wherein the first sound effect data comprises the following first parameters: loudness and/or timbre;
and adjusting the tone quality of the call sound according to the first parameter in the first sound effect data.
10. The method of claim 1, wherein the identity information of the user includes at least two of the following characteristic information: gender information, age information, race information, nationality information, skin color information, voice information of the user or face image information of the user.
11. The method of claim 10, wherein obtaining the identity information of the user comprises:
And acquiring the identity information of the user from a user account registered by the user, wherein the user account is an account of the electronic equipment used by the user.
12. The method of claim 10, wherein the listening data further comprises: hearing sensitivity of the user;
Acquiring sensitivity of the user's hearing, comprising:
Detecting the pose of the electronic equipment when the electronic equipment is in a call state;
determining the gesture of the user for answering the call according to the gesture of the electronic equipment;
and determining and acquiring the hearing sensitivity of the ear matched with the gesture of the user for answering the call according to the gesture of the user for answering the call.
13. The method according to any one of claims 10 to 12, wherein adjusting the quality of the call sound according to the answering data of the user comprises:
acquiring a second parameter matched with each feature in the answering data;
and adjusting the tone quality of the call sound according to each second parameter and the correction weight corresponding to each second parameter.
14. The method according to any one of claims 2 to 8 and 10 to 12, wherein adjusting the quality of the call sound according to the plugging state of the earpiece in the electronic device and the answering data of the user includes:
Acquiring first sound effect data matched with the hole blocking state of the earphone, wherein the first sound effect data comprises the following parameters: loudness and/or timbre;
obtaining a second parameter matched with each feature in the answering data, wherein the second parameter comprises: loudness and/or timbre;
And adjusting the tone quality of the call sound according to the first parameter, the correction weight of the first parameter, each second parameter and the correction weight of each second parameter in the first sound effect data.
15. The method of claim 1, wherein the earpiece aperture blocking state further comprises: a first shielding direction and a second shielding direction;
the obtaining the hole blocking state of the earphone in the electronic equipment comprises the following steps:
Acquiring first acoustic resistance information of the earphone;
and determining the plugging state of the earphone according to the first acoustic resistance information and the stored third corresponding relation, wherein the third corresponding relation is used for indicating the corresponding relation between the acoustic resistance information of the earphone and the plugging state of the earphone.
16. An electronic device, comprising:
a memory and a processor, the memory coupled with the processor;
The memory stores program instructions that, when executed by the processor, cause the electronic device to perform the method of call sound adjustment of any one of claims 1-15.
17. A computer readable storage medium comprising a computer program, characterized in that the computer program, when run on an electronic device, causes the electronic device to perform the method of call sound adjustment according to any one of claims 1-15.
CN202211332686.5A 2022-10-28 2022-10-28 Method for adjusting call sound, electronic equipment and storage medium Pending CN117998008A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211332686.5A CN117998008A (en) 2022-10-28 2022-10-28 Method for adjusting call sound, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211332686.5A CN117998008A (en) 2022-10-28 2022-10-28 Method for adjusting call sound, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117998008A true CN117998008A (en) 2024-05-07

Family

ID=90897831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211332686.5A Pending CN117998008A (en) 2022-10-28 2022-10-28 Method for adjusting call sound, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117998008A (en)

Similar Documents

Publication Publication Date Title
CN109511037B (en) Earphone volume adjusting method and device and computer readable storage medium
US20170126192A1 (en) Method, device, and computer-readable medium for adjusting volume
CN104991754B (en) The way of recording and device
RU2636580C2 (en) Method and device for displaying conversational interface
CN107493500B (en) Multimedia resource playing method and device
CN104767860B (en) Income prompting method, device and terminal
CN110290262A (en) A kind of call method and terminal device
WO2018120127A1 (en) Virtual reality device and incoming call management method therefor
CN109064998A (en) A kind of screen luminance adjustment method, terminal and computer readable storage medium
CN106101433B (en) Notification message display methods and device
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
CN111314560A (en) Method for adjusting sound loudness and communication terminal
CN108282575A (en) Method for controlling volume, mobile terminal and computer readable storage medium
CN110475134A (en) A kind of comment content display method, device, electronic equipment and storage medium
CN108052304B (en) Volume adjusting method, volume adjusting equipment and computer storage medium
CN109842725A (en) A kind of method for controlling volume of mobile terminal, mobile terminal and storage medium
CN111698593B (en) Active noise reduction method and device, and terminal
CN108712563A (en) call control method, device and mobile terminal
CN108476479A (en) Accidental access method and device, user equipment and computer readable storage medium
CN108900688A (en) Sounding control method, device, electronic device and computer-readable medium
US20110106530A1 (en) Apparatus and method for improving voice quality in portable terminal
CN106210247A (en) Terminal control method and device
CN112019948B (en) Intercommunication method for intercom equipment, intercom equipment and storage medium
WO2018035868A1 (en) Method for outputting audio, electronic device, and storage medium
CN117998008A (en) Method for adjusting call sound, electronic equipment and storage medium

Legal Events

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