CN110708420A - Voice message processing method and mobile terminal - Google Patents
Voice message processing method and mobile terminal Download PDFInfo
- Publication number
- CN110708420A CN110708420A CN201910888059.1A CN201910888059A CN110708420A CN 110708420 A CN110708420 A CN 110708420A CN 201910888059 A CN201910888059 A CN 201910888059A CN 110708420 A CN110708420 A CN 110708420A
- Authority
- CN
- China
- Prior art keywords
- target
- mobile terminal
- voice data
- recording
- gain
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72433—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a voice message processing method and a mobile terminal. The method is applied to a first mobile terminal, a touch screen of the first mobile terminal is provided with a pressure detection assembly, and the method comprises the following steps: receiving voice message recording operation; responding to the voice message recording operation, recording original voice data, and acquiring a target pressure value detected by the pressure detection assembly; determining a target recording gain corresponding to the target pressure value according to a first preset corresponding relation between the pressure value and the recording gain, and adjusting the original voice data according to the target recording gain to obtain target voice data; and sending the original voice data and the target voice data serving as target voice messages to a second mobile terminal. The embodiment of the invention solves the problem that the recording process of the voice message of the mobile terminal is greatly influenced by the surrounding environment factors in the prior art.
Description
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a voice message processing method and a mobile terminal.
Background
With the rapid development of mobile communication technology, mobile terminals, such as smart phones, have become an indispensable tool in various aspects of people's life. Various functions of the mobile terminal are gradually improved, various intelligent services can be provided, and great convenience is brought to users.
Taking the voice chat function as an example, various application programs of the current mobile terminal have the function, and communicate with the opposite party in real time through voice chat, so that on one hand, the communication effect is better than that of text chat, and on the other hand, when a user is inconvenient to type, normal communication can be realized through voice input. However, when the user is in a public place where it is inconvenient to speak loudly or the surrounding environment is noisy, the volume of the voice message recorded by the user is small or is covered by the noise of the surrounding environment, so that the voice message received by the receiving party has a poor effect or cannot be played normally, and the communication between the user and the receiving party is affected.
Therefore, in the prior art, the recording process of the voice message is greatly influenced by the surrounding environment factors.
Disclosure of Invention
The embodiment of the invention provides a voice message processing method and a mobile terminal, and aims to solve the problem that the recording process of a voice message of the mobile terminal is greatly influenced by surrounding environment factors in the prior art.
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 voice message processing method, which is applied to a first mobile terminal, where a touch screen of the first mobile terminal is provided with a pressure detection component, and the method includes:
receiving voice message recording operation;
responding to the voice message recording operation, recording original voice data, and acquiring a target pressure value detected by the pressure detection assembly;
determining a target recording gain corresponding to the target pressure value according to a first preset corresponding relation between the pressure value and the recording gain, and adjusting the original voice data according to the target recording gain to obtain target voice data;
and sending the original voice data and the target voice data serving as target voice messages to a second mobile terminal.
In a second aspect, an embodiment of the present invention provides a voice message processing method, which is applied to a second mobile terminal, and the method includes:
receiving a voice message of a first mobile terminal;
acquiring original voice data and target voice data in the voice message; the target voice data is the voice data obtained by adjusting the original voice data according to the target recording gain by the first mobile terminal; the touch screen of the first mobile terminal is provided with a pressure detection assembly, and the target recording gain is determined by the first mobile terminal according to a target pressure value detected by the pressure detection assembly.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal is a first mobile terminal, a touch screen of the first mobile terminal is provided with a pressure detection component, and the first mobile terminal includes:
the operation receiving module is used for receiving voice message recording operation;
the voice recording module is used for responding to the voice message recording operation, recording original voice data and acquiring a target pressure value detected by the pressure detection assembly;
the gain adjustment module is used for determining a target recording gain corresponding to the target pressure value according to a first preset corresponding relation between the pressure value and the recording gain, and adjusting the original voice data according to the target recording gain to obtain target voice data;
and the message sending module is used for sending the original voice data and the target voice data serving as target voice messages to a second mobile terminal.
In a fourth aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal is a second mobile terminal, and the second mobile terminal includes:
the message receiving module is used for receiving the voice message of the first mobile terminal;
the voice acquisition module is used for acquiring original voice data and target voice data in the voice message; the target voice data is the voice data obtained by adjusting the original voice data according to the target recording gain by the first mobile terminal; the touch screen of the first mobile terminal is provided with a pressure detection assembly, and the target recording gain is determined by the first mobile terminal according to a target pressure value detected by the pressure detection assembly.
In a fifth aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the voice message processing method as described above when executing the computer program.
In a sixth 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 in the voice message processing method described above.
In the embodiment of the invention, by receiving voice message recording operation, original voice data is recorded in response to the voice message recording operation, and a target pressure value detected by the pressure detection component is obtained; determining a target recording gain corresponding to the target pressure value according to a first preset corresponding relation between the pressure value and the recording gain, and adjusting the original voice data according to the target recording gain to obtain target voice data; and finally, the original voice data and the target voice data are sent to the second mobile terminal as target voice messages, so that even if the user of the first mobile terminal is in an occasion with inconvenient speaking aloud or noisy ambient environment, the influence of the ambient environment on the recording process can be effectively avoided by adjusting the recording gain, the receiving end can still receive the target voice data with large volume, the personal privacy of the user of the first mobile terminal is protected, and the communication effect is also ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating a voice message processing method according to an embodiment of the present invention;
FIG. 2 shows a schematic diagram of a first example of embodiment of the invention;
FIG. 3 shows one of the schematic diagrams of a second example of embodiment of the invention;
FIG. 4 shows a second schematic diagram of a second example of an embodiment of the invention;
FIG. 5 shows one of the schematic diagrams of a third example of embodiment of the invention;
FIG. 6 shows a second schematic diagram of a third example of an embodiment of the invention;
FIG. 7 shows a schematic diagram of a fourth example of embodiment of the invention;
FIG. 8 shows a flow chart of a fourth example of an embodiment of the invention;
fig. 9 is a second flowchart of a voice message processing method according to an embodiment of the present invention;
FIG. 10 shows a schematic view of a fifth example of embodiment of the invention;
FIG. 11 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 12 is a second block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 13 is a third block diagram of a mobile terminal according to an 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.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a voice message processing method, which is applied to a first mobile terminal, where a touch screen of the first mobile terminal is provided with a pressure detection component, and the pressure detection component may be a pressure sensor or other components for detecting pressure; the first mobile terminal may be a cell phone, a telephone watch or other terminal device.
The method comprises the following steps:
The voice message recording operation may be manually triggered by a user, for example, the user touches and controls a key related to voice recording in the operation interface of the application program a; or the application program calls the voice recording interface to trigger the voice message recording operation, for example, the application program B asks the user whether to start the voice message recording operation, and if the user feedback is yes, the application program B calls the voice recording interface of the first mobile terminal.
And 102, responding to the voice message recording operation, recording original voice data, and acquiring a target pressure value detected by the pressure detection component.
The mobile terminal responds to the voice message recording operation and records original voice data, wherein the original voice data is voice data input by a user; and before, during or after recording voice data, acquiring a target pressure value detected by the pressure detection assembly, wherein in a general situation, the pressure value detected by the pressure detection assembly is increased along with the increase of the pressure of the user touch screen.
The recording gain is the power amplification factor between the output voice power of the recorded voice and the original input voice power; the first mobile terminal is provided with a first preset corresponding relation, the first preset corresponding relation is a corresponding relation between the pressure values and the recording gains, each recording gain corresponds to one pressure value or a continuous pressure value range in the first preset corresponding relation, and the pressure values take the preset pressure values as unit pressure.
Determining a target recording gain corresponding to the target pressure value according to the first preset corresponding relation, and amplifying the power of the recorded original voice data according to the amplification factor indicated by the target recording gain to obtain target voice data; the volume of the target voice data is increased compared with that of the original voice data, so that if the user is in some occasions where loud speaking is inconvenient or public occasions where the surrounding environment is noisy, even if the volume of the user is small when the user inputs voice, the first mobile terminal can still obtain the voice data with higher volume by adjusting the volume of the first mobile terminal.
Alternatively, the process of adjusting the voice volume may be implemented by a hardware device of the mobile terminal, or may be implemented by a software algorithm.
And step 104, sending the original voice data and the target voice data as target voice messages to a second mobile terminal.
After gain adjustment is carried out on the original voice data to obtain target voice data, the original voice data and the target voice data are both used as target voice messages and are sent to a second mobile terminal, and the second mobile terminal is a receiving end of the voice messages; thus, after the second mobile terminal receives the voice message, the user of the second mobile terminal can select to play the original voice data or the target voice data after gain adjustment.
Optionally, the original voice data and the target voice data may be sent to the second mobile terminal at the same time, or the original voice data may be sent first, and a selectable item is provided to allow the user of the second mobile terminal to select whether to acquire the target voice data.
In the embodiment of the invention, by receiving voice message recording operation, original voice data is recorded in response to the voice message recording operation, and a target pressure value detected by the pressure detection assembly is obtained; determining a target recording gain corresponding to the target pressure value according to a first preset corresponding relation between the pressure value and the recording gain, and adjusting the original voice data according to the target recording gain to obtain target voice data; and finally, the original voice data and the target voice data are sent to the second mobile terminal as target voice messages, so that even if the user of the first mobile terminal is in an occasion with inconvenient speaking aloud or noisy ambient environment, the influence of the ambient environment on the recording process can be effectively avoided by adjusting the recording gain, the receiving end can still receive the target voice data with large volume, the personal privacy of the user of the first mobile terminal is protected, and the communication effect is also ensured. The embodiment of the invention solves the problem that the recording process of the voice message of the mobile terminal is greatly influenced by the surrounding environment factors in the prior art.
Optionally, in an embodiment of the present invention, after the step of determining the target recording gain corresponding to the target pressure value, the method includes:
and displaying a target pendant on a display screen of the first mobile terminal, and displaying a recording gain corresponding to the pressure value at the current moment in the target pendant.
In order to facilitate a User to grasp a recording gain corresponding to a current pressing pressure, a User Interface (UI) may be displayed on a display screen of the first mobile terminal, as a first example, the UI Interface may be as shown in fig. 2, where a key a is a key for a User to trigger voice entry, the pressure detection component detects a touch pressure at the key a, and simultaneously displays a recording gain corresponding to the current touch pressure at a target pendant B, and the target pendant may display the recording gain in a form of a display percentage or a display grid number;
the current gain progress is indicated at C (filled position) in fig. 2.
In addition, when the target pendant is displayed on the display screen, the mobile terminal also allows the progress bar to be dragged, and then the user can select the target gain by dragging the progress bar.
Optionally, in an embodiment of the present invention, the first preset corresponding relationship is a linear relationship or a curved relationship.
As a second example, referring to fig. 3, fig. 3 shows a corresponding relationship between pressure values and recording gains under a straight-line relationship, where a pressure value P shown on a horizontal axis is a pressure in a preset unit, that is, each unit on the horizontal axis represents a pressure of a preset value, a point Q is a point corresponding to a maximum gain value, and the maximum gain is 30 dB;
the straight line relationship in fig. 3 is the following equation 1:
wherein y represents a target recording gain, and x represents a target pressure value;
referring to fig. 4, fig. 4 is a corresponding relationship between pressure values and recording gains under a curve relationship, and a pressure value P shown on a horizontal axis is a pressure in a preset unit, that is, each unit on the horizontal axis represents a pressure of a preset value; the point Q is a point corresponding to the maximum gain value, and the maximum gain is 30 dB; the straight line relationship in fig. 4 is the following equation 2:
wherein y represents the target recording gain and x represents the target pressure value.
Optionally, in an embodiment of the present invention, the pressure detection assembly includes a deformation sensor disposed on the touch screen;
the step of obtaining the target pressure value detected by the pressure detection component includes:
acquiring a target deformation value of the touch screen detected by the deformation sensor;
and determining a target pressure value corresponding to the target deformation value according to a second preset corresponding relation between the deformation value and the pressure value.
The deformation sensor is used for detecting deformation generated on the touch screen; a second preset corresponding relation is set between the deformation value and the pressure value; and after the deformation sensor detects the target deformation value at the current moment, determining a target pressure value according to a second preset corresponding relation.
Optionally, in the embodiment of the present invention, the step of obtaining the target speech data by adjusting the original speech data according to the target recording gain includes a first case or a second case:
the first condition is as follows: in the process of performing analog-to-digital conversion on the analog signal of the original voice data, adjusting the gain of an analog-to-digital converter (ADC) module of the first mobile terminal to the target recording gain, and performing analog-to-digital conversion on the analog signal through the ADC module to obtain target voice data;
case two: and performing analog-to-digital conversion on the original voice data at an analog-to-digital converter (ADC) module of the first mobile terminal to obtain a digital signal of the original voice data, and adjusting the digital signal according to a preset gain algorithm and the target recording gain to obtain target voice data.
As a third example, referring to fig. 5, in a first case, in the process of performing Analog-to-digital conversion on the Analog signal of the original voice data, gain adjustment is implemented through an Analog-to-digital converter (ADC) module of the mobile terminal, the Analog signal is input to the ADC module, a digital signal with the gain adjusted is obtained, that is, the digital signal of the target voice data, and the mobile terminal finally transmits the digital signal through the antenna module.
Referring to fig. 6, in case two, a preset gain algorithm is implemented by software to implement gain adjustment; specifically, the analog signal is input to the ADC module to obtain a digital signal without gain adjustment, and the gain of the digital signal without gain adjustment is adjusted to a target recording gain according to a preset gain algorithm to obtain target voice data.
As a fourth example, referring to fig. 7, the mobile terminal shown in fig. 7 has a recording gain control module E disposed beside a microphone F of the mobile terminal, wherein a gain control range of the recording gain control module E has a preset range. The mobile terminal is further provided with a pressure touch screen, referring to fig. 8, and the main process of the voice message processing method applied to the mobile terminal comprises the following steps:
step 801, when the mobile terminal carries out voice recording, a pressure touch screen detects pressure P;
step 802, the mobile terminal determines a voice gain M corresponding to the pressure P;
step 803, the recording gain control module E performs voice gain adjustment on the original voice data recorded by the mobile terminal according to the voice gain M to obtain target voice data;
and step 804, the mobile terminal sends the target voice data and the original voice data to a receiving end.
In the embodiment of the invention, by receiving voice message recording operation, original voice data is recorded in response to the voice message recording operation, and a target pressure value detected by the pressure detection assembly is obtained; determining a target recording gain corresponding to the target pressure value according to a first preset corresponding relation between the pressure value and the recording gain, and adjusting the original voice data according to the target recording gain to obtain target voice data; and finally, the original voice data and the target voice data are sent to the second mobile terminal as target voice messages, so that even if the user of the first mobile terminal is in an occasion with inconvenient speaking aloud or noisy ambient environment, the influence of the ambient environment on the recording process can be effectively avoided by adjusting the recording gain, the receiving end can still receive the target voice data with large volume, the personal privacy of the user of the first mobile terminal is protected, and the communication effect is also ensured.
Referring to fig. 9, another embodiment of the present invention provides a voice message processing method applied to a second mobile terminal, where the method includes:
The second mobile terminal is a receiving end of the voice message, and the second mobile terminal can be a mobile phone, a telephone watch or other terminal equipment.
It is to be understood that the voice message in the present embodiment is the target voice message in the above-described embodiment.
the target voice data is the voice data obtained by adjusting the original voice data according to the target recording gain by the first mobile terminal; the touch screen of the first mobile terminal is provided with a pressure detection assembly, and the target recording gain is determined by the first mobile terminal according to a target pressure value detected by the pressure detection assembly.
Wherein, the voice message comprises original voice data and the target voice data; the original voice data is the voice data input by the user, the target voice data is the voice data obtained by amplifying the power of the original voice data, and the amplification multiple (target recording gain) is determined according to the pressure of the user touching the first mobile terminal; that is, the voice message received by the second mobile terminal includes two sets of voice data, and as a fifth example, as shown in fig. 10, each message notification N includes two pieces of voice data below, namely, the original voice data (i.e., the original voice in the figure) and the target voice data (i.e., the amplified volume voice in the figure); the second mobile terminal plays the items selected by the user in the two groups of voice data; therefore, if the user of the first mobile terminal is in some occasions where the speaking is inconvenient to speak loudly or in public places where the surrounding environment is noisy, even if the volume of the user of the first mobile terminal is small when inputting voice, the first mobile terminal can still obtain voice data with higher volume by adjusting the volume; when receiving the voice message, the second mobile terminal can play the voice message according to the selection of the user, and if the user of the second mobile terminal is in a noisy environment or the user of the second mobile terminal is an old person with weak hearing or the like, the user can obtain the voice message by playing the target voice data.
In the embodiment of the invention, the voice message of the first mobile terminal is received; acquiring original voice data and target voice data in the voice message; the target voice data is the voice data obtained by adjusting the original voice data according to the target recording gain by the first mobile terminal; therefore, even if the user of the first mobile terminal is in an occasion where the speaking is inconvenient to be loud or the surrounding environment is noisy, the influence of the surrounding environment on the recording process can be effectively avoided by adjusting the recording gain, the second mobile terminal can still receive the target voice data with large volume, and the user of the second mobile terminal can select to play the original voice data or the target voice data according to actual needs, so that the individual privacy of the user is protected, and the communication effect is also guaranteed. The embodiment of the invention solves the problem that the recording process of the voice message of the mobile terminal is greatly influenced by the surrounding environment factors in the prior art.
The voice message processing method according to the embodiment of the present invention is described above, and a mobile terminal according to the embodiment of the present invention will be described below with reference to the accompanying drawings.
Referring to fig. 11, an embodiment of the present invention further provides a mobile terminal 1100, where the mobile terminal is a first mobile terminal 1100, a touch screen of the first mobile terminal 1100 is provided with a pressure detection component, and the pressure detection component may be a pressure sensor or other components for detecting pressure; the first mobile terminal 1100 may be a cell phone, phone watch, or other terminal device; the first mobile terminal 1100 includes:
an operation receiving module 1101 is configured to receive a voice message recording operation.
The voice message recording operation may be manually triggered by a user, for example, the user touches and controls a key related to voice recording in the operation interface of the application program a; or the application program may invoke the voice recording interface to trigger the voice message recording operation, for example, the application program B queries whether the user starts the voice message recording operation, and if the user feedback is yes, the application program B invokes the voice recording interface of the first mobile terminal 1100.
And a voice recording module 1102, configured to record original voice data in response to the voice message recording operation, and obtain a target pressure value detected by the pressure detection component.
The mobile terminal responds to the voice message recording operation and records original voice data, wherein the original voice data is voice data input by a user; and before, during or after recording voice data, acquiring a target pressure value detected by the pressure detection assembly, wherein in a general situation, the pressure value detected by the pressure detection assembly is increased along with the increase of the pressure of the user touch screen.
The gain adjustment module 1103 is configured to determine a target recording gain corresponding to the target pressure value according to a first preset corresponding relationship between a pressure value and a recording gain, and adjust the original voice data according to the target recording gain to obtain target voice data.
The recording gain is the power amplification factor between the output voice power of the recorded voice and the original input voice power; the first mobile terminal 1100 is provided with a first preset corresponding relationship between pressure values and recording gains, in which each recording gain corresponds to a pressure value or a continuous range of pressure values, and the pressure value is set as a unit pressure.
Determining a target recording gain corresponding to the target pressure value according to the first preset corresponding relation, and amplifying the power of the recorded original voice data according to the amplification factor indicated by the target recording gain to obtain target voice data; the volume of the target voice data is increased compared to the volume of the original voice data, so that if the user is in a public place where it is inconvenient to speak loudly or the surrounding environment is noisy, even if the volume is small when the user inputs voice, the first mobile terminal 1100 can still obtain the voice data with higher volume by adjusting the volume.
Alternatively, the process of adjusting the voice volume may be implemented by a hardware device of the mobile terminal, or may be implemented by a software algorithm.
And a message sending module 1104, configured to send the original voice data and the target voice data to a second mobile terminal as a target voice message.
After gain adjustment is carried out on the original voice data to obtain target voice data, the original voice data and the target voice data are both used as target voice messages and are sent to a second mobile terminal, and the second mobile terminal is a receiving end of the voice messages; thus, after the second mobile terminal receives the voice message, the user of the second mobile terminal can select to play the original voice data or the target voice data after gain adjustment.
Optionally, the original voice data and the target voice data may be sent to the second mobile terminal at the same time, or the original voice data may be sent first, and a selectable item is provided to allow the user of the second mobile terminal to select whether to acquire the target voice data.
Optionally, in this embodiment of the present invention, the first mobile terminal 1100 includes:
and a gain display module, configured to display a target pendant on a display screen of the first mobile terminal 1100, and display a recording gain corresponding to a pressure value at the current time in the target pendant.
Optionally, in an embodiment of the present invention, the first preset corresponding relationship is a linear relationship or a curved relationship.
Optionally, in an embodiment of the present invention, the pressure detection assembly includes a deformation sensor disposed on the touch screen;
the voice recording module 1102 includes:
the deformation submodule is used for acquiring a target deformation value of the touch screen, which is detected by the deformation sensor;
and determining a target pressure value corresponding to the target deformation value according to a second preset corresponding relation between the deformation value and the pressure value.
Optionally, in an embodiment of the present invention, the gain adjusting module 1103 includes:
a hardware adjusting sub-module, configured to adjust a gain of an ADC module of the first mobile terminal 1100 to the target recording gain in an analog-to-digital conversion process of the analog signal of the original voice data, and perform analog-to-digital conversion on the analog signal through the ADC module to obtain target voice data;
or
And the software adjusting submodule is configured to perform analog-to-digital conversion on the original voice data at an analog-to-digital converter ADC module of the first mobile terminal 1100 to obtain a digital signal of the original voice data, and adjust the digital signal according to the target recording gain according to a preset gain algorithm to obtain target voice data.
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. 8, and is not described herein again to avoid repetition.
In the embodiment of the present invention, the operation receiving module 1101 receives a voice message recording operation, and the voice recording module 1102 records original voice data in response to the voice message recording operation, and obtains a target pressure value detected by the pressure detection component; the gain adjustment module 1103 determines a target recording gain corresponding to the target pressure value according to a first preset corresponding relationship between the pressure value and the recording gain, and adjusts the original voice data according to the target recording gain to obtain target voice data; message sending module 1104 will original voice data and target voice data send for the second mobile terminal as target voice message, like this, even if first mobile terminal 1100's user is in inconvenient loud speaking or the circumstances that the surrounding environment is noisy, still can effectively avoid the influence of surrounding environment to the recording process through adjusting the recording gain, the receiving end still can receive the great target voice data of volume, has both protected first mobile terminal 1100's user's individual privacy, has also guaranteed the communication effect.
Referring to fig. 12, an embodiment of the present invention further provides a mobile terminal 1200, where the mobile terminal is a second mobile terminal 1200, and the second mobile terminal 1200 includes:
a message receiving module 1201, configured to receive a voice message of a first mobile terminal;
a voice obtaining module 1202, configured to obtain original voice data and target voice data in the voice message; the target voice data is the voice data obtained by adjusting the original voice data according to the target recording gain by the first mobile terminal; the touch screen of the first mobile terminal is provided with a pressure detection assembly, and the target recording gain is determined by the first mobile terminal according to a target pressure value detected by the pressure detection assembly.
In the embodiment of the present invention, a voice message of a first mobile terminal is received through a message receiving module 1201; the voice obtaining module 1202 obtains original voice data and target voice data in the voice message; the target voice data is the voice data obtained by adjusting the original voice data according to the target recording gain by the first mobile terminal; therefore, even if the user of the first mobile terminal is in an occasion where the speaking is inconvenient to be loud or the surrounding environment is noisy, the influence of the surrounding environment on the recording process can still be effectively avoided by adjusting the recording gain, the second mobile terminal 1200 can still receive the target voice data with large volume, and the user of the second mobile terminal 1200 can select to play the original voice data or the target voice data according to actual needs, so that the individual privacy of the user is protected, and the communication effect is also ensured.
Fig. 13 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
the mobile terminal 1300 includes, but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, a processor 1310, a power supply 1311, and the like. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 13 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 radio frequency unit 1301 is used for receiving voice message recording operation;
a processor 1310, configured to record original voice data in response to the voice message recording operation, and obtain a target pressure value detected by the pressure detection component;
determining a target recording gain corresponding to the target pressure value according to a first preset corresponding relation between the pressure value and the recording gain, and adjusting the original voice data according to the target recording gain to obtain target voice data;
and sending the original voice data and the target voice data serving as target voice messages to a second mobile terminal.
Or
Receiving a voice message of a first mobile terminal;
acquiring original voice data and target voice data in the voice message; the target voice data is the voice data obtained by adjusting the original voice data according to the target recording gain by the first mobile terminal; the touch screen of the first mobile terminal is provided with a pressure detection assembly, and the target recording gain is determined by the first mobile terminal according to a target pressure value detected by the pressure detection assembly.
In the embodiment of the invention, by receiving voice message recording operation, original voice data is recorded in response to the voice message recording operation, and a target pressure value detected by the pressure detection component is obtained; determining a target recording gain corresponding to the target pressure value according to a first preset corresponding relation between the pressure value and the recording gain, and adjusting the original voice data according to the target recording gain to obtain target voice data; and finally, the original voice data and the target voice data are sent to the second mobile terminal as target voice messages, so that even if the user of the first mobile terminal is in an occasion with inconvenient speaking aloud or noisy ambient environment, the influence of the ambient environment on the recording process can be effectively avoided by adjusting the recording gain, the receiving end can still receive the target voice data with large volume, the personal privacy of the user of the first mobile terminal is protected, and the communication effect is also ensured.
It should be noted that, in this embodiment, the mobile terminal 1300 may implement each process in the method embodiment of the present invention and achieve the same beneficial effects, and for avoiding repetition, details are not described here.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1301 may be configured to receive and transmit signals during a message transmission or call process, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1310; in addition, the uplink data is transmitted to the base station. In general, radio unit 1301 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 1301 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 1302, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 1303 can convert audio data received by the radio frequency unit 1301 or the network module 1302 or stored in the memory 1309 into an audio signal and output as sound. Also, the audio output unit 1303 may also provide audio output related to a specific function performed by the mobile terminal 1300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1304 is used to receive audio or video signals. The input Unit 1304 may include a Graphics Processing Unit (GPU) 13041 and a microphone 13042, and the Graphics processor 13041 processes image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 1306. The image frames processed by the graphic processor 13041 may be stored in the memory 1309 (or other storage medium) or transmitted via the radio frequency unit 1301 or the network module 1302. The microphone 13042 can receive sounds and can process such sounds 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 1301 in case of a phone call mode.
The mobile terminal 1300 also includes at least one sensor 1305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 13061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 13061 and/or backlight when the mobile terminal 1300 moves 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 1305 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1306 is used to display information input by a user or information provided to the user. The Display unit 1306 may include a Display panel 13061, and the Display panel 13061 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 1307 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 1307 includes a touch panel 13071 and other input devices 13072. Touch panel 13071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on touch panel 13071 or near touch panel 13071 using a finger, stylus, or any other suitable object or attachment). The touch panel 13071 may include two parts, 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 1310, and receives and executes commands sent from the processor 1310. In addition, the touch panel 13071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 1307 may include other input devices 13072 in addition to the touch panel 13071. In particular, the other input devices 13072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 13071 can be overlaid on the display panel 13061, and when the touch panel 13071 detects a touch operation on or near the touch panel, the touch operation can be transmitted to the processor 1310 to determine the type of the touch event, and then the processor 1310 can provide a corresponding visual output on the display panel 13061 according to the type of the touch event. Although the touch panel 13071 and the display panel 13061 are shown in fig. 13 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 13071 and the display panel 13061 may be integrated to implement the input and output functions of the mobile terminal, and are not limited herein.
The interface unit 1308 is an interface through which an external device is connected to the mobile terminal 1300. 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. Interface unit 1308 may be used to receive input from an external device (e.g., data information, power, etc.) and transmit the received input to one or more elements within mobile terminal 1300 or may be used to transmit data between mobile terminal 1300 and an external device.
The memory 1309 may be used to store software programs as well as various data. The memory 1309 may mainly include a program storage area and a data storage area, wherein the program storage 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 1309 can include high-speed random access memory, and can 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 1310 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 1309 and calling data stored in the memory 1309, thereby performing overall monitoring of the mobile terminal. Processor 1310 may include one or more processing units; preferably, the processor 1310 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 processor 1310.
The mobile terminal 1300 may also include a power supply 1311 (e.g., a battery) for powering the various components, and preferably, the power supply 1311 may be logically coupled to the processor 1310 via a power management system that provides functionality for managing charging, discharging, and power consumption via the power management system.
In addition, the mobile terminal 1300 includes some functional modules that are not shown, and are not described herein again.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 1310, a memory 1309, and a computer program stored in the memory 1309 and capable of running on the processor 1310, where the computer program, when executed by the processor 1310, implements each process of the foregoing voice message processing method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
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 the computer program is executed by a processor, the computer program implements each process of the foregoing voice message processing method embodiment, 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 (10)
1. A voice message processing method is applied to a first mobile terminal, and a touch screen of the first mobile terminal is provided with a pressure detection assembly, and is characterized by comprising the following steps:
receiving voice message recording operation;
responding to the voice message recording operation, recording original voice data, and acquiring a target pressure value detected by the pressure detection assembly;
determining a target recording gain corresponding to the target pressure value according to a first preset corresponding relation between the pressure value and the recording gain, and adjusting the original voice data according to the target recording gain to obtain target voice data;
and sending the original voice data and the target voice data serving as target voice messages to a second mobile terminal.
2. The method of claim 1, wherein after the step of determining the target recording gain corresponding to the target pressure value, the method comprises:
and displaying a target pendant on a display screen of the first mobile terminal, and displaying a recording gain corresponding to the pressure value at the current moment in the target pendant.
3. The method of claim 1, wherein the first predetermined correspondence relationship is a straight-line relationship or a curved-line relationship.
4. The voice message processing method according to claim 1, wherein the pressure detection component comprises a deformation sensor disposed on the touch screen;
the step of obtaining the target pressure value detected by the pressure detection component includes:
acquiring a target deformation value of the touch screen detected by the deformation sensor;
and determining a target pressure value corresponding to the target deformation value according to a second preset corresponding relation between the deformation value and the pressure value.
5. The method of claim 1, wherein the step of adjusting the original voice data according to the target recording gain to obtain the target voice data comprises:
in the process of performing analog-to-digital conversion on the analog signal of the original voice data, adjusting the gain of an analog-to-digital converter (ADC) module of the first mobile terminal to the target recording gain, and performing analog-to-digital conversion on the analog signal through the ADC module to obtain target voice data;
or
And performing analog-to-digital conversion on the original voice data at an analog-to-digital converter (ADC) module of the first mobile terminal to obtain a digital signal of the original voice data, and adjusting the digital signal according to a preset gain algorithm and the target recording gain to obtain target voice data.
6. A voice message processing method is applied to a second mobile terminal, and is characterized by comprising the following steps:
receiving a voice message of a first mobile terminal;
acquiring original voice data and target voice data in the voice message; the target voice data is the voice data obtained by adjusting the original voice data according to the target recording gain by the first mobile terminal; the touch screen of the first mobile terminal is provided with a pressure detection assembly, and the target recording gain is determined by the first mobile terminal according to a target pressure value detected by the pressure detection assembly.
7. The utility model provides a mobile terminal, mobile terminal is first mobile terminal, first mobile terminal's touch screen is provided with pressure detection subassembly, its characterized in that, first mobile terminal includes:
the operation receiving module is used for receiving voice message recording operation;
the voice recording module is used for responding to the voice message recording operation, recording original voice data and acquiring a target pressure value detected by the pressure detection assembly;
the gain adjustment module is used for determining a target recording gain corresponding to the target pressure value according to a first preset corresponding relation between the pressure value and the recording gain, and adjusting the original voice data according to the target recording gain to obtain target voice data;
and the message sending module is used for sending the original voice data and the target voice data serving as target voice messages to a second mobile terminal.
8. A mobile terminal, the mobile terminal being a second mobile terminal, the second mobile terminal comprising:
the message receiving module is used for receiving the voice message of the first mobile terminal;
the voice acquisition module is used for acquiring original voice data and target voice data in the voice message; the target voice data is the voice data obtained by adjusting the original voice data according to the target recording gain by the first mobile terminal; the touch screen of the first mobile terminal is provided with a pressure detection assembly, and the target recording gain is determined by the first mobile terminal according to a target pressure value detected by the pressure detection assembly.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the voice message processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the voice message processing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910888059.1A CN110708420A (en) | 2019-09-19 | 2019-09-19 | Voice message processing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910888059.1A CN110708420A (en) | 2019-09-19 | 2019-09-19 | Voice message processing method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110708420A true CN110708420A (en) | 2020-01-17 |
Family
ID=69196304
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910888059.1A Pending CN110708420A (en) | 2019-09-19 | 2019-09-19 | Voice message processing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110708420A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020055322A (en) * | 2000-12-28 | 2002-07-08 | 엘지전자 주식회사 | System and Method of Editing Voice |
CN102710856A (en) * | 2012-05-23 | 2012-10-03 | 华为终端有限公司 | Control method and control device |
CN103929522A (en) * | 2013-01-10 | 2014-07-16 | 联想(北京)有限公司 | Control method and control apparatus of electronic device, and electronic device |
CN105242859A (en) * | 2015-08-27 | 2016-01-13 | 广东欧珀移动通信有限公司 | Voice information processing method and terminal |
CN105824557A (en) * | 2016-02-19 | 2016-08-03 | 维沃移动通信有限公司 | Method for playing voice information and mobile terminal |
CN106033311A (en) * | 2015-03-12 | 2016-10-19 | 北京智谷睿拓技术服务有限公司 | An interaction method, an interaction device and user equipment |
CN106453981A (en) * | 2016-09-27 | 2017-02-22 | 北京小米移动软件有限公司 | Voice message processing method and device of electronic equipment |
CN107945777A (en) * | 2017-11-23 | 2018-04-20 | 维沃移动通信有限公司 | A kind of audio production method, mobile terminal and computer-readable recording medium |
CN108351196A (en) * | 2015-11-12 | 2018-07-31 | 微软技术许可有限责任公司 | Changing sensor |
CN109753195A (en) * | 2019-01-15 | 2019-05-14 | 云谷(固安)科技有限公司 | Capacitive touch screen and preparation method thereof |
-
2019
- 2019-09-19 CN CN201910888059.1A patent/CN110708420A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020055322A (en) * | 2000-12-28 | 2002-07-08 | 엘지전자 주식회사 | System and Method of Editing Voice |
CN102710856A (en) * | 2012-05-23 | 2012-10-03 | 华为终端有限公司 | Control method and control device |
CN103929522A (en) * | 2013-01-10 | 2014-07-16 | 联想(北京)有限公司 | Control method and control apparatus of electronic device, and electronic device |
CN106033311A (en) * | 2015-03-12 | 2016-10-19 | 北京智谷睿拓技术服务有限公司 | An interaction method, an interaction device and user equipment |
CN105242859A (en) * | 2015-08-27 | 2016-01-13 | 广东欧珀移动通信有限公司 | Voice information processing method and terminal |
CN108351196A (en) * | 2015-11-12 | 2018-07-31 | 微软技术许可有限责任公司 | Changing sensor |
CN105824557A (en) * | 2016-02-19 | 2016-08-03 | 维沃移动通信有限公司 | Method for playing voice information and mobile terminal |
CN106453981A (en) * | 2016-09-27 | 2017-02-22 | 北京小米移动软件有限公司 | Voice message processing method and device of electronic equipment |
CN107945777A (en) * | 2017-11-23 | 2018-04-20 | 维沃移动通信有限公司 | A kind of audio production method, mobile terminal and computer-readable recording medium |
CN109753195A (en) * | 2019-01-15 | 2019-05-14 | 云谷(固安)科技有限公司 | Capacitive touch screen and preparation method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108540655B (en) | Caller identification processing method and mobile terminal | |
CN108874357B (en) | Prompting method and mobile terminal | |
CN109078319B (en) | Game interface display method and terminal | |
CN111666009B (en) | Interface display method and electronic equipment | |
CN109215683B (en) | Prompting method and terminal | |
CN108319442B (en) | Audio playing control method and mobile terminal | |
CN108391008B (en) | Message reminding method and mobile terminal | |
CN109905812B (en) | Input power control method and device and terminal equipment | |
CN108196815B (en) | Method for adjusting call sound and mobile terminal | |
CN109412932B (en) | Screen capturing method and terminal | |
CN110012143B (en) | Telephone receiver control method and terminal | |
CN108521501B (en) | Voice input method, mobile terminal and computer readable storage medium | |
CN111130989A (en) | Information display and sending method and electronic equipment | |
CN111093137B (en) | Volume control method, volume control equipment and computer readable storage medium | |
CN111182118B (en) | Volume adjusting method and electronic equipment | |
CN110058837B (en) | Audio output method and terminal | |
CN109873894B (en) | Volume adjusting method and mobile terminal | |
CN111683171A (en) | Audio output method and electronic equipment | |
CN111614329A (en) | Power amplifier, electronic equipment, voltage control method and device | |
CN108345421B (en) | Icon display method and mobile terminal | |
CN108093119B (en) | Strange incoming call number marking method and mobile terminal | |
CN108307048B (en) | Message output method and device and mobile terminal | |
WO2021098698A1 (en) | Audio playback method and terminal device | |
CN111526248B (en) | Audio output mode switching method and electronic equipment | |
CN110913070B (en) | Call method and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200117 |