CN109873894B - Volume adjusting method and mobile terminal - Google Patents

Volume adjusting method and mobile terminal Download PDF

Info

Publication number
CN109873894B
CN109873894B CN201910153493.5A CN201910153493A CN109873894B CN 109873894 B CN109873894 B CN 109873894B CN 201910153493 A CN201910153493 A CN 201910153493A CN 109873894 B CN109873894 B CN 109873894B
Authority
CN
China
Prior art keywords
sound
decibel value
mobile terminal
playing
environment
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.)
Active
Application number
CN201910153493.5A
Other languages
Chinese (zh)
Other versions
CN109873894A (en
Inventor
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910153493.5A priority Critical patent/CN109873894B/en
Publication of CN109873894A publication Critical patent/CN109873894A/en
Application granted granted Critical
Publication of CN109873894B publication Critical patent/CN109873894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides a volume adjusting method and a mobile terminal, relates to the technical field of communication, and aims to solve the problem that environmental factors become main factors interfering the conversation of people. The volume adjusting method comprises the following steps: acquiring a first sound decibel value of an environment where the mobile terminal is located; when the mobile terminal is in a call mode, determining a sound playing decibel value according to the first sound decibel value; receiving a sound signal transmitted by a call opposite terminal; and adjusting the volume of the sound signal according to the sound playing decibel value. The volume adjusting method in the embodiment of the invention is applied to the mobile terminal.

Description

Volume adjusting method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a volume adjusting method and a mobile terminal.
Background
With the arrival of the network era, the use frequency of the mobile terminal is higher and higher, wherein the conversation function is the basic function of the mobile terminal, replaces the traditional meeting communication and becomes the main contact way of people.
Generally, when people use a mobile terminal to communicate, the environment is not fixed, the people may be in a noisy shopping mall, may be in a quiet library, and the like, so that environmental factors become main factors interfering with the communication of people.
Common interferences are that the other party is in a noisy environment, the speaking sound is loud, and the user is in a quiet environment, which causes the sound heard by the user from the receiver to be harsh and even affect the surrounding population.
Disclosure of Invention
The embodiment of the invention provides a volume adjusting method, which aims to solve the problem that environmental factors become main factors interfering the conversation of people.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a volume adjusting method, applied to a mobile terminal, including: acquiring a first sound decibel value of the environment where the mobile terminal is located; when the mobile terminal is in a call mode, determining a sound playing decibel value according to the first sound decibel value; receiving a sound signal transmitted by a call opposite terminal; adjusting the volume of the sound signal according to the sound playing decibel value
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including: the first environment decibel acquisition module is used for acquiring a first sound decibel value of the environment where the mobile terminal is located; the playing decibel determination module is used for determining a sound playing decibel value according to the first sound decibel value when the mobile terminal is in a conversation mode; the voice signal receiving module is used for receiving voice signals transmitted by the opposite end of the call; and the volume adjusting module is used for adjusting the volume of the sound signal according to the sound playing decibel value.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the volume adjustment method.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the volume adjustment method.
In the embodiment of the invention, the mobile terminal acquires the first sound decibel value of the current environment in real time. Meanwhile, based on the condition that the mobile terminal is in the call mode, a sound playing decibel value suitable for playing sound in the current environment can be determined according to the first sound decibel value of the current environment, and the sound playing decibel value can enable a user to hear clearly and is consistent with the current environment of the user. For example, when the user is in a quiet environment, the decibel value of the sound played is not too large, so that the user can listen comfortably and the sound is not leaked to the outside. Therefore, based on the determined sound playing decibel value, after the sound signal transmitted by the opposite end of the call is received, the volume of the sound signal is firstly adjusted and then the sound signal is played, and then the sound signal transmitted by the opposite end is played by the mobile terminal in the call mode, so that the sound playing decibel value is met, and the sound playing decibel value is consistent with the environment. Therefore, the embodiment can identify the environmental noise condition based on the acquisition of the environmental sound decibel value, so that the volume of the sound signal is adjusted in real time according to the environmental noise condition in the call, the interference of the call volume caused by environmental factors is reduced, and the degree of the environmental interference of the user in the call is also reduced.
Drawings
Fig. 1 is one of flowcharts of a volume adjustment method according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a volume adjustment method according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a volume adjustment method according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart of a volume adjustment method according to an embodiment of the present invention;
FIG. 5 is a fifth flowchart of a volume adjustment method according to an embodiment of the present invention;
FIG. 6 is a sixth flowchart of a volume adjustment method according to an embodiment of the present invention;
FIG. 7 is one of the block diagrams of a mobile terminal of an embodiment of the present invention;
fig. 8 is a second block diagram of the mobile terminal according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows a flow chart of a volume adjustment method according to an embodiment of the present invention, which is applied to a mobile terminal, and includes:
step S1: the method comprises the steps of obtaining a first sound decibel value of the environment where the mobile terminal is located.
According to different environments of the mobile terminal, a first sound decibel value of the current environment of the mobile terminal is obtained.
Step S2: and when the mobile terminal is in a call mode, determining a sound playing decibel value according to the first sound decibel value.
When the fact that the user establishes call connection with other users is detected, namely the mobile terminal is in a call mode, the noise condition of the current environment is analyzed and identified according to the first sound decibel value obtained currently, and therefore the decibel value suitable for playing call sound in the environment, namely the sound playing decibel value in the step, is determined.
For example, in a scenario where the user a establishes a call connection with the user B, the user a is in a noisy environment, such as a large square, KTV, etc., and is in an environment with a first sound decibel value of 85 decibels, the user B is in a quiet environment, such as a company lunch break, a conference room, a coffee shop, etc., and is in an environment with a first sound decibel value of 30 decibels, it is conceivable that the noise of the environment in which the user a is located is relatively high, so the user a speaks very loud, and the environment in which the user B is located is relatively quiet, so the user B speaks very loud. During the call, the user a may not hear the speaking voice of the user B, so that a sound decibel value that can be clearly heard under the environment sound of 85 decibels can be determined according to the current 85 decibels, that is, the sound playing decibel value in the step; for the user B, hearing the speaking voice of the user a is loud and harsh, and may even disturb surrounding people, so a comfortable sound decibel value under the environment sound of 30 decibels can be determined according to the current 30 decibels, which can ensure the user's clarity and does not make the user's ears feel uncomfortable, i.e., the sound playing decibel value in this step.
The action of obtaining the first sound decibel value of the environment where the mobile terminal is located is carried out in real time, so that the corresponding sound playing decibel value can be changed in time according to the change of the first sound decibel value.
Step S3: and receiving the sound signal transmitted by the opposite call terminal.
Step S3 and step S2 may be performed simultaneously, that is, in the call mode, the sound playing decibel value is determined according to the first sound decibel value while the sound signal transmitted from the opposite end of the call is received.
Step S4: and adjusting the volume of the sound signal according to the sound playing decibel value.
And adjusting the volume of the sound signal in real time according to the sound playing decibel value, so that the sound signal played can reach the sound playing decibel value after the terminal receives the sound signal of the opposite terminal.
In the embodiment of the invention, the mobile terminal acquires the first sound decibel value of the current environment in real time. Meanwhile, based on the condition that the mobile terminal is in the call mode, a sound playing decibel value suitable for playing sound in the current environment can be determined according to the first sound decibel value of the current environment, and the sound playing decibel value can enable a user to hear clearly and is consistent with the current environment of the user. For example, when the user is in a quiet environment, the decibel value of the sound played is not too large, so that the user can listen comfortably and the sound is not leaked to the outside. Therefore, based on the determined sound playing decibel value, after the sound signal transmitted by the opposite end of the call is received, the volume of the sound signal is firstly adjusted and then the sound signal is played, and then the sound signal transmitted by the opposite end is played by the mobile terminal in the call mode, so that the sound playing decibel value is met, and the sound playing decibel value is consistent with the environment. Therefore, the embodiment can identify the environmental noise condition based on the acquisition of the environmental sound decibel value, so that the volume of the sound signal is adjusted in real time according to the environmental noise condition in the call, the interference of the call volume caused by environmental factors is reduced, and the degree of the environmental interference of the user in the call is also reduced.
Preferably, the value range of the sound playing decibel value can be 50 decibels to 60 decibels, and within the value range, the sound heard by the user is moderate, and the comfort of the user is better.
On the basis of the embodiment shown in fig. 1, fig. 2 shows a flowchart of a volume adjustment method according to an embodiment of the present invention, and step S2 includes:
step S21: and when the mobile terminal is in a call mode, acquiring a second sound decibel value of the environment where the opposite call end is located.
In this embodiment, both the mobile terminal of the home terminal and the mobile terminal of the opposite end of the call may obtain the sound decibel values corresponding to the environments where the mobile terminals of the home terminal and the opposite end of the call are located, and for the purpose of distinguishing, the sound decibel value of the environment where the mobile terminal of the home terminal is located is referred to as a first sound decibel value, and the sound decibel value of the environment where the opposite end of the call is located is referred to as a second sound decibel value.
When a call connection is established between the home terminal and the opposite call terminal, the two are respectively in a call mode, under the support of a Voice over LTE (vo-LTE for short) or a 5-Generation (5G) network, the transmission of network data and a Voice signal can be simultaneously satisfied, and at this time, the mobile terminals at the two ends transmit the sound decibel values of the environments where the mobile terminals are located to the opposite side through the network data, so that the mobile terminals at the two ends can acquire the sound decibel values of the environments where the opposite side is located, and the noise condition of the environment where the opposite side is located can be identified according to the sound decibel values of the environments where the opposite side is located.
Step S22: and determining a sound playing decibel value according to the first sound decibel value and the second sound decibel value.
And adopting a corresponding algorithm for the first sound decibel value and the second sound decibel value at the same moment, and obtaining sound playing decibel values suitable for conversation under the environment where the mobile terminals at the two ends are located respectively.
For example, after a series of operations are performed on the first sound decibel value and the second sound decibel value, an intermediate value can be obtained according to a certain proportion, and the intermediate value is used as a sound playing decibel value.
Step S4 includes:
step S41: and if the sound playing decibel value is greater than the second sound decibel value, increasing the volume of the sound signal.
According to the habit of the user, if the current environment is noisy, the speaking voice of the user is improved; if the current environment is quiet, the user's speaking voice will also be reduced. Therefore, the obtained second sound decibel value of the environment where the opposite end of the call is located can be considered to be close to the received decibel value of the sound signal transmitted by the opposite end of the call, so before the sound signal is played, the sound playing decibel value and the second sound decibel value are compared firstly.
If the sound playing decibel value is greater than the second sound decibel value, it indicates that the sound of the user at the opposite end is small, the volume of the sound signal can be properly increased, and then the sound signal is played.
Step S42: and if the sound playing decibel value is smaller than the second sound decibel value, reducing the volume of the sound signal.
If the sound playing decibel value is smaller than the second sound decibel value, the sound of the user at the opposite end is larger, the volume of the sound signal can be properly reduced, and then the sound signal is played.
For example, in a scenario where the user a and the user B establish a call connection, the first sound decibel value of the environment where the user a is located is 85 decibels, and the first sound decibel value of the environment where the user B is located is 30 decibels, and the two parties transmit the sound decibel values of their respective environments to each other when establishing a call. The user A transmits 85 dB data to the user B through data transmission, and at the moment, the user B knows that the user A is in a relatively noisy environment, the user B determines a normal conversation decibel (50 dB-60 dB), and automatically and properly reduces the volume of a sound signal transmitted by the user A to 50 dB-60 dB. Meanwhile, the user A also receives the 30 dB data transmitted by the user B, the user A knows that the user B is in a relatively quiet environment, the user A can determine a normal conversation decibel (50 dB-60 dB), then the volume of the sound signal transmitted by the user B is adjusted to be larger and adjusted to be 50 dB-60 dB, and at the moment, the user A and the user B can normally converse.
In this embodiment, during a call, a user can analyze and identify the environmental conditions of the two ends based on the first sound decibel value obtained by the home terminal and the second sound decibel value obtained by the opposite terminal, and determine a moderate sound playing decibel value by comprehensively considering the environmental conditions of the two ends, so as to adjust the volume of a sound signal transmitted by the opposite terminal according to the sound playing decibel value, so that the user can hear a more suitable call sound volume in the current environment, and further reduce the interference degree of environmental factors on the call.
Preferably, based on the vo-Lte or 5G network, when the mobile phone can transmit voice and data simultaneously during the call, the user transmits the decibel value of the environment where the user is located to the other party. After receiving the decibel value transmitted by the other party, the mobile phone compares the decibel value with the decibel value of normal speaking of a person, then adjusts the decibel of the speaking of the other party to the decibel which is comfortable for people to feel according to a certain proportion, and finally transmits the decibel to the user through the receiver, so that the purpose that the conversation is not interfered by the surrounding environment is achieved, and a comfortable experience can be created for both parties and the user.
On the basis of the embodiment shown in fig. 1, fig. 3 shows a flowchart of a volume adjustment method according to an embodiment of the present invention, and step S1 includes:
step S11: and acquiring an environment simulation sound signal of the environment where the mobile terminal is located.
Step S12: the ambient analog sound signal is converted to an ambient digital sound signal.
Step S13: and obtaining a first sound decibel value according to the environment digital sound signal.
In this embodiment, a decibel sensor may be built in the mobile terminal, and a first sound decibel value of the current environment is obtained through the decibel sensor.
The method includes the steps that a decibel sensor can be referenced to the ground, analog signals of the environment where the mobile terminal is located are obtained, then the analog signals are converted into digital signals, a first sound decibel value is obtained from the digital signals, and the obtained first sound decibel value is registered in real time, so that the first sound decibel value can be updated in real time. Therefore, when the mobile terminal is in a call state, the current latest first sound decibel value can be transmitted to the opposite call terminal.
Preferably, the decibel sensor may be comprised of a plurality of modules, with different modules being used to achieve different effects, with the primary objective of ultimately obtaining the first sound decibel value.
On the basis of the embodiment shown in fig. 3, fig. 4 shows a flowchart of a volume adjustment method according to an embodiment of the present invention, and after step S11, the method further includes:
step S5: and determining preset noise data according to the acquired environment simulation sound signal.
Based on the environment simulation sound signals of the environment where the mobile terminal is located, the mobile terminal can collect a large number of environment simulation sound signals, further, characteristics and the like of the collected environment simulation sound signals are analyzed, a certain mathematical model is established, then the mathematical model corresponding to the environment noise is obtained, and the mathematical model corresponding to the environment noise is used as preset noise data.
After step S3, the method further includes:
step S6: and identifying target noise data included in the sound signal according to preset noise data.
After receiving the sound signal transmitted by the opposite terminal, firstly, based on the preset noise data, identifying target noise data similar to the preset noise data in the sound signal.
Step S7: the target noise data is removed.
And removing the target noise data and keeping the human voice data in the voice signal.
After step S4, the method further includes:
step S8: and playing the sound signal.
Preferably, in the earpiece state, the played sound signal may be transmitted through the earpiece to the user's ear.
When the mobile terminal is in a call mode, after the voice signal transmitted by the opposite call terminal is received, some non-human voice data in the voice signal can be filtered according to a pre-established mathematical model. If the surrounding environment of the opposite party is noisy, the sound signal transmitted by the opposite party in the call contains some noise and noises, so that some unformed noise and noises in the surrounding environment can be filtered, the voice of the user in the call can be heard more clearly, and the user can have better communication experience.
In this embodiment, after noise removal and volume adjustment, the audio signal is played during the call, so that on one hand, interference caused by decibel difference between the environments at the two ends is eliminated, and on the other hand, interference caused by noise of the environment at the opposite end is also eliminated, thereby further reducing the interference degree of the environment factors on the call.
On the basis of the embodiment shown in fig. 1, fig. 5 shows a flowchart of a volume adjustment method according to an embodiment of the present invention, and step S1 includes:
step S14: and acquiring the positioning information of the mobile terminal.
Step S15: and acquiring a first sound decibel value corresponding to the positioning information according to the positioning information of the mobile terminal.
In this embodiment, the terminal manufacturer may obtain the first sound decibel value and the corresponding positioning information, and upload the first sound decibel value and the corresponding positioning information to the back-end server. Therefore, after the user using the large size, the back-end server combines big data analysis to draw a three-dimensional sound decibel value distribution map.
Therefore, in step S14, the positioning information of the mobile terminal may be obtained, so as to perform a query in the sound decibel value distribution map according to the positioning information of the mobile terminal, so as to obtain a first sound decibel value corresponding to the positioning information.
Preferably, the Positioning information is Global Positioning System (GPS) Positioning information.
The embodiment is more suitable for a mobile terminal without a decibel sensor, and the mobile terminal can obtain the first sound decibel value of the current environment based on network data, so that the application range of the volume adjusting method in the embodiment is wider, and more users can avoid the interference of environmental factors in the call.
On the basis of the embodiment shown in fig. 1, fig. 6 shows a flowchart of a volume adjustment method according to an embodiment of the present invention, and after step S1, the method further includes:
step S9: adjusting the multimedia playing volume of the mobile terminal according to the first sound decibel value; and/or adjusting the ring playing volume of the mobile terminal according to the first sound decibel value.
In this embodiment, the decibel sensor can also automatically adjust the volume of the multimedia playing and the volume of the ring playing by detecting the surrounding environment sound.
Such as: in a quiet environment, the ring playing volume can be automatically adjusted downwards, so that peripheral users cannot be influenced under the condition that the users perceive the ring playing volume; when in noisy environment, the ring playing volume can be automatically adjusted up, so that the user can normally answer the call.
In addition, the multimedia playing volume and the ring playing volume can be automatically adjusted at the first time by combining the GPS positioning of the user terminal.
In summary, the embodiments of the present invention solve the pain of the end user being interfered by the surrounding environment in some occasions. The method comprises the steps that after a call is established, a terminal transmits a decibel value of the current environment to the other side through a network, and through certain algorithm adjustment, the decibel value in the call is automatically adjusted, so that a proper call experience is provided for a user, the user is not influenced by the surrounding environment in the call process, and a comfortable call scene is provided for the user. Based on the method, the users of the two parties can meet the requirement of normal conversation of the two parties without transferring conversation places.
Fig. 7 shows a block diagram of a mobile terminal according to another embodiment of the present invention, including:
the first environment decibel acquisition module 10 is configured to acquire a first sound decibel value of an environment where the mobile terminal is located;
a playing decibel determination module 20, configured to determine a sound playing decibel value according to the first sound decibel value when the mobile terminal is in the call mode;
the voice signal receiving module 30 is configured to receive a voice signal transmitted by an opposite end of the call;
and the volume adjusting module 40 is used for adjusting the volume of the sound signal according to the sound playing decibel value.
In the embodiment of the invention, the mobile terminal acquires the first sound decibel value of the current environment in real time. Meanwhile, based on the condition that the mobile terminal is in the call mode, a sound playing decibel value suitable for playing sound in the current environment can be determined according to the first sound decibel value of the current environment, and the sound playing decibel value can enable a user to hear clearly and is consistent with the current environment of the user. For example, when the user is in a quiet environment, the decibel value of the sound played is not too large, so that the user can listen comfortably and the sound is not leaked to the outside. Therefore, based on the determined sound playing decibel value, after the sound signal transmitted by the opposite end of the call is received, the volume of the sound signal is firstly adjusted and then the sound signal is played, and then the sound signal transmitted by the opposite end is played by the mobile terminal in the call mode, so that the sound playing decibel value is met, and the sound playing decibel value is consistent with the environment. Therefore, the embodiment can identify the environmental noise condition based on the acquisition of the environmental sound decibel value, so that the volume of the sound signal is adjusted in real time according to the environmental noise condition in the call, the interference of the call volume caused by environmental factors is reduced, and the degree of the environmental interference of the user in the call is also reduced.
Preferably, the playing decibel determination module 20 includes:
the second environment decibel acquisition unit is used for acquiring a second sound decibel value of the environment where the opposite end of the call is located when the mobile terminal is in the call mode;
the comprehensive determining unit is used for determining a sound playing decibel value according to the first sound decibel value and the second sound decibel value;
the volume adjusting module 40 includes:
the volume increasing unit is used for increasing the volume of the sound signal if the sound playing decibel value is greater than the second sound decibel value;
and the volume reducing unit is used for reducing the volume of the sound signal if the sound playing decibel value is smaller than the second sound decibel value.
Preferably, the first environmental decibel acquisition module 10 includes:
the system comprises an analog signal acquisition unit, a signal processing unit and a signal processing unit, wherein the analog signal acquisition unit is used for acquiring an environment analog sound signal of the environment where the mobile terminal is located;
the digital signal conversion unit is used for converting the environment analog sound signal into an environment digital sound signal;
and the decibel value obtaining unit is used for obtaining a first sound decibel value according to the environment digital sound signal.
Preferably, the mobile terminal further comprises:
the preset noise determining module is used for determining preset noise data according to the acquired environment simulation sound signal;
the target noise determining module is used for identifying target noise data included in the voice signal according to preset noise data;
the target noise removal module is used for removing target noise data;
and the sound playing module is used for playing the sound signal.
Preferably, the first environmental decibel acquisition module 10 includes:
the positioning acquisition unit is used for acquiring positioning information of the mobile terminal;
and the decibel value acquisition unit is used for acquiring a first sound decibel value corresponding to the positioning information according to the positioning information of the mobile terminal.
Preferably, the mobile terminal further comprises:
the multimedia volume adjusting module is used for adjusting the multimedia playing volume of the mobile terminal according to the first sound decibel value; and/or the presence of a gas in the gas,
and the ringtone volume adjusting module is used for adjusting the ringtone playing volume of the mobile terminal according to the first sound decibel value.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 6, and is not described herein again to avoid repetition.
Fig. 8 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 8 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The sensor 105 is configured to acquire a first sound decibel value of an environment where the mobile terminal is located;
a processor 110, configured to determine a sound playing decibel value according to the first sound decibel value when the mobile terminal is in a call mode;
the radio frequency unit 101 is used for receiving a sound signal transmitted by a call opposite terminal;
and the audio output unit 103 is configured to adjust the volume of the sound signal according to the sound playing decibel value.
In the embodiment of the invention, the mobile terminal acquires the first sound decibel value of the current environment in real time. Meanwhile, based on the condition that the mobile terminal is in the call mode, a sound playing decibel value suitable for playing sound in the current environment can be determined according to the first sound decibel value of the current environment, and the sound playing decibel value can enable a user to hear clearly and is consistent with the current environment of the user. For example, when the user is in a quiet environment, the decibel value of the sound played is not too large, so that the user can listen comfortably and the sound is not leaked to the outside. Therefore, based on the determined sound playing decibel value, after the sound signal transmitted by the opposite end of the call is received, the volume of the sound signal is firstly adjusted and then the sound signal is played, and then the sound signal transmitted by the opposite end is played by the mobile terminal in the call mode, so that the sound playing decibel value is met, and the sound playing decibel value is consistent with the environment. Therefore, the embodiment can identify the environmental noise condition based on the acquisition of the environmental sound decibel value, so that the volume of the sound signal is adjusted in real time according to the environmental noise condition in the call, the interference of the call volume caused by environmental factors is reduced, and the degree of the environmental interference of the user in the call is also reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 8, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 is an interface through which an external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the mobile terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements each process of the above-mentioned volume adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the volume adjustment method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A volume adjusting method is applied to a mobile terminal and is characterized by comprising the following steps:
acquiring a first sound decibel value of the environment where the mobile terminal is located;
when the mobile terminal is in a call mode, determining a sound playing decibel value according to the first sound decibel value, wherein the sound playing decibel value comprises the following steps:
when the mobile terminal is in a call mode, acquiring a second sound decibel value of the environment where a call opposite end is located;
determining the sound playing decibel value according to the first sound decibel value and the second sound decibel value;
receiving a sound signal transmitted by a call opposite terminal;
adjusting the volume of the sound signal according to the sound playing decibel value, comprising:
if the sound playing decibel value is larger than the second sound decibel value, increasing the volume of the sound signal;
if the sound playing decibel value is smaller than the second sound decibel value, reducing the volume of the sound signal;
after the obtaining of the first sound decibel value of the environment where the mobile terminal is located, the method further includes:
adjusting the multimedia playing volume of the mobile terminal according to the first sound decibel value;
and/or the presence of a gas in the gas,
adjusting the ring playing volume of the mobile terminal according to the first sound decibel value;
determining the sound playing decibel value according to the first sound decibel value and the second sound decibel value includes: and obtaining an intermediate value according to the first sound decibel value and the second sound decibel value, and taking the intermediate value as the sound playing decibel value.
2. The method according to claim 1, wherein the obtaining the first decibel value of the sound of the environment where the mobile terminal is located comprises:
acquiring an environment simulation sound signal of the environment where the mobile terminal is located;
converting the ambient analog sound signal into an ambient digital sound signal;
and obtaining the first sound decibel value according to the environment digital sound signal.
3. The method according to claim 2, wherein after obtaining the environment simulation sound signal of the environment where the mobile terminal is located, the method further comprises:
determining preset noise data according to the acquired environment simulation sound signal;
after receiving the voice signal transmitted by the opposite call terminal, the method further comprises:
identifying target noise data included in the sound signal according to the preset noise data;
removing the target noise data;
after the volume of the sound signal is adjusted according to the sound playing decibel value, the method further includes:
and playing the sound signal.
4. A mobile terminal, comprising:
the first environment decibel acquisition module is used for acquiring a first sound decibel value of the environment where the mobile terminal is located;
the playing decibel determination module is used for determining a sound playing decibel value according to the first sound decibel value when the mobile terminal is in a conversation mode;
the playing decibel determination module comprises:
the second environment decibel acquisition unit is used for acquiring a second sound decibel value of the environment where the opposite end of the call is located when the mobile terminal is in the call mode;
a comprehensive determining unit, configured to determine the sound playing decibel value according to the first sound decibel value and the second sound decibel value;
the voice signal receiving module is used for receiving voice signals transmitted by the opposite end of the call;
the volume adjusting module is used for adjusting the volume of the sound signal according to the sound playing decibel value;
the volume adjustment module includes:
a volume increasing unit, configured to increase the volume of the sound signal if the sound playing decibel value is greater than the second sound decibel value;
a volume reducing unit, configured to reduce the volume of the sound signal if the sound playing decibel value is smaller than the second sound decibel value;
the mobile terminal further includes:
the multimedia volume adjusting module is used for adjusting the multimedia playing volume of the mobile terminal according to the first sound decibel value;
and/or the presence of a gas in the gas,
the ringtone volume adjusting module is used for adjusting the ringtone playing volume of the mobile terminal according to the first sound decibel value;
determining the sound playing decibel value according to the first sound decibel value and the second sound decibel value includes: and obtaining an intermediate value according to the first sound decibel value and the second sound decibel value, and taking the intermediate value as the sound playing decibel value.
5. The mobile terminal of claim 4, wherein the first environmental decibel acquisition module comprises:
the analog signal acquisition unit is used for acquiring an environment analog sound signal of the environment where the mobile terminal is located;
the digital signal conversion unit is used for converting the environment analog sound signal into an environment digital sound signal;
and the decibel value obtaining unit is used for obtaining the first sound decibel value according to the environment digital sound signal.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the preset noise determining module is used for determining preset noise data according to the acquired environment simulation sound signal;
the target noise determining module is used for identifying target noise data included in the sound signal according to the preset noise data;
a target noise removal module for removing the target noise data;
and the sound playing module is used for playing the sound signal.
7. A mobile terminal, characterized in that it comprises a processor, a memory, a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the volume adjustment method according to any one of claims 1 to 3.
8. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the volume adjustment method according to any one of claims 1 to 3.
CN201910153493.5A 2019-02-28 2019-02-28 Volume adjusting method and mobile terminal Active CN109873894B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910153493.5A CN109873894B (en) 2019-02-28 2019-02-28 Volume adjusting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910153493.5A CN109873894B (en) 2019-02-28 2019-02-28 Volume adjusting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109873894A CN109873894A (en) 2019-06-11
CN109873894B true CN109873894B (en) 2021-08-06

Family

ID=66919540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910153493.5A Active CN109873894B (en) 2019-02-28 2019-02-28 Volume adjusting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109873894B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110856068A (en) * 2019-11-05 2020-02-28 南京中感微电子有限公司 Communication method of earphone device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716458A (en) * 2013-12-13 2014-04-09 上海斐讯数据通信技术有限公司 Mobile terminal call voice volume adjustment method
CN107846516A (en) * 2017-11-10 2018-03-27 维沃移动通信有限公司 One kind call scene reminding method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201674553U (en) * 2010-04-06 2010-12-15 康佳集团股份有限公司 Mobile phone capable of automatically adjusting sound volume along with volume of surrounding environment
CN108076230B (en) * 2017-12-28 2021-01-26 努比亚技术有限公司 Call volume adjusting method, mobile terminal and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716458A (en) * 2013-12-13 2014-04-09 上海斐讯数据通信技术有限公司 Mobile terminal call voice volume adjustment method
CN107846516A (en) * 2017-11-10 2018-03-27 维沃移动通信有限公司 One kind call scene reminding method and mobile terminal

Also Published As

Publication number Publication date
CN109873894A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN107562406B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN107888765B (en) Method for switching scene mode and mobile terminal
CN108551534B (en) Method and device for multi-terminal voice call
CN109918039B (en) Volume adjusting method and mobile terminal
CN108282575B (en) Volume control method, mobile terminal and computer readable storage medium
CN107231473B (en) Audio output regulation and control method, equipment and computer readable storage medium
US20200257433A1 (en) Display method and mobile terminal
CN110246513B (en) Voice signal processing method and mobile terminal
CN109168108B (en) Amplitude adjusting method and device for electroacoustic device and mobile terminal
CN109981904B (en) Volume control method and terminal equipment
CN109215683B (en) Prompting method and terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN108319440B (en) Audio output method and mobile terminal
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN110913070B (en) Call method and terminal equipment
CN111459447A (en) Volume adjustment display method and electronic equipment
CN109889756B (en) Video call method and terminal equipment
CN109547894B (en) Amplitude adjustment method and device for electroacoustic device and mobile terminal
CN109873894B (en) Volume adjusting method and mobile terminal
CN110602696A (en) Conversation privacy protection method and electronic equipment
CN108540659B (en) Method, terminal and computer readable storage medium for reducing TDD noise influence
CN108040311B (en) Audio playing method, terminal and computer readable storage medium
CN109309758B (en) Audio processing device, terminal equipment and signal processing method
CN110139181B (en) Audio processing method and device, earphone, terminal equipment and storage medium

Legal Events

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