CN111124349A - Audio processing method and electronic equipment - Google Patents

Audio processing method and electronic equipment Download PDF

Info

Publication number
CN111124349A
CN111124349A CN201911221300.1A CN201911221300A CN111124349A CN 111124349 A CN111124349 A CN 111124349A CN 201911221300 A CN201911221300 A CN 201911221300A CN 111124349 A CN111124349 A CN 111124349A
Authority
CN
China
Prior art keywords
audio
time period
target time
target
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911221300.1A
Other languages
Chinese (zh)
Inventor
罗征武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201911221300.1A priority Critical patent/CN111124349A/en
Publication of CN111124349A publication Critical patent/CN111124349A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/686Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Abstract

The invention discloses an audio processing method and electronic equipment, which are used for solving the problem that the efficiency of a user for reviewing audio contents is low because the playing time of audio cannot be shortened under the condition of ensuring the audio quality in the prior art. The method comprises the following steps: detecting a target time period in the first audio; deleting the target time period in the first audio to obtain a second audio under the condition that the target time period exists in the first audio; generating a target audio according to the target time period and the second audio; the target time period is a time period in which the voltage amplitude of the electric signal in the first audio is smaller than or equal to a preset amplitude threshold value, and the time length is larger than a first preset duration threshold value.

Description

Audio processing method and electronic equipment
Technical Field
The present invention relates to the field of audio processing technologies, and in particular, to an audio processing method and an electronic device.
Background
With the rapid development of electronic devices, users often like to record audio of certain activity sites by using a recording function in the electronic devices when participating in specific activities, such as class, training and lecture, so as to review the content in the audio later.
Currently, when a user uses an application program to play recorded audio, the recorded audio can be played at an original speed, and can also be played at a fast speed or a slow speed. If the user selects to play the audio at the original speed, the playing duration of the audio will not change, however, the playing method will also play the invalid audio signals in the audio, such as audio electrical signals with a voltage amplitude lower than-60 dB. If the user selects fast playing, the playing duration of the audio can be shortened by changing the sampling rate of the audio, but the playing method can increase the distortion of the audio and even cause the loss of key information.
Therefore, a further solution is still needed to shorten the playing time of the audio and improve the efficiency of the user in reviewing the audio content while ensuring the audio quality.
Disclosure of Invention
The embodiment of the invention provides an audio processing method and electronic equipment, and aims to solve the problems that in the prior art, the playing time of audio cannot be shortened under the condition of ensuring the audio quality, and the efficiency of a user for reviewing audio contents is low.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an audio processing method, including:
detecting a target time period in the first audio;
deleting the target time period in the first audio to obtain a second audio under the condition that the target time period exists in the first audio;
generating a target audio according to the target time period and the second audio;
the target time period is a time period in which the voltage amplitude of the electric signal in the first audio is smaller than or equal to a preset amplitude threshold value and the time length is larger than a first preset duration threshold value.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
a detection unit configured to detect a target time period in the first audio;
the deleting unit is used for deleting the target time period in the first audio to obtain a second audio under the condition that the target time period exists in the first audio;
the generating unit is used for generating target audio according to the target time period and the second audio;
the target time period is a time period in which the voltage amplitude of the electric signal in the first audio is smaller than or equal to a preset amplitude threshold value and the time length is larger than a first preset duration threshold value.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a memory, a processor and 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 audio processing method according to the first aspect.
In a fourth aspect, the embodiments of the present invention further provide a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the audio processing method according to the first aspect.
The audio processing method provided by the embodiment of the invention can detect the target time period in the first audio; under the condition that the first audio has the target time period, deleting the target time period in the first audio to obtain a second audio; generating a target audio according to the target time period and the second audio; the target time period is a time period in which the voltage amplitude of the electric signal in the first audio is smaller than or equal to a preset amplitude threshold value and the time length is larger than a first preset duration threshold value. The target time period in the audio can be detected, and the target audio with the target time period deleted can be generated, so that the playing time of the audio can be shortened under the condition of ensuring the audio quality, the time of a user can be saved, and the efficiency of the user in learning or working based on the audio can be improved.
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 schematic flow chart illustrating an implementation of an audio processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a target time period in audio provided by an embodiment of the invention;
fig. 3 is a schematic flowchart of an audio processing method according to an embodiment of the present invention, in response to an import operation;
fig. 4 is a schematic flowchart of an audio processing method according to an embodiment of the present invention, responding to a play operation;
FIG. 5 is a schematic diagram illustrating a flow responding to a save operation in an audio processing method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of an audio processing method according to an embodiment of the present invention, responding to a recording operation;
fig. 7 is a schematic diagram of a playing interface in the audio processing method according to the embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of an electronic device 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.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
In order to solve the problem that the playing time of audio cannot be shortened under the condition that the audio quality cannot be guaranteed in the prior art, so that the efficiency of a user for reviewing audio content is low, the invention provides an audio processing method, and an execution main body of the method can be but is not limited to a mobile phone, a tablet computer, a wearable device and the like, and can be configured to execute at least one of the user terminals of the method provided by the embodiment of the invention, or the execution main body of the method can also be a client self capable of executing the method.
For convenience of description, the following description will be made on embodiments of the method, taking an execution subject of the method as an example of an electronic device capable of executing the method. It is to be understood that the implementation of the method as an electronic device is merely an exemplary illustration and should not be construed as a limitation of the method.
Specifically, the audio processing method provided by the invention comprises the following steps: detecting a target time period in the first audio; under the condition that the first audio has the target time period, deleting the target time period in the first audio to obtain a second audio; generating a target audio according to the target time period and the second audio; the target time period is a time period in which the voltage amplitude of the electric signal in the first audio is smaller than or equal to a preset amplitude threshold value and the time length is larger than a first preset duration threshold value.
The target time period in the audio can be detected, and the target audio with the target time period deleted can be generated, so that the playing time of the audio can be shortened under the condition of ensuring the audio quality, the time of a user can be saved, and the efficiency of the user in learning or working based on the audio can be improved.
The following describes in detail an implementation process of the audio processing method shown in fig. 1 with reference to an implementation flow diagram of the audio processing method, including:
step 101, detecting a target time period in a first audio;
the first audio may include an audio that is completely recorded and an audio that is not completely recorded.
It should be understood that in practical applications, users often have a long pause or a target time period of multi-person discussion in the audio recorded at a conference site, a training site or a lecture site, and the presence of the audio may take a lot of waiting time for the users when the users review the recorded audio. In order to shorten the playing time of the audio and further save the time of a user under the condition of ensuring the audio quality, the embodiment of the invention can receive the preset operation of the first audio and delete the target time period in the audio in response to the preset operation of the first audio.
Optionally, the user may perform a preset operation on the first audio when importing, playing, saving, or recording the first audio, so as to delete the target time period in the first audio. Specifically, in the method provided by the embodiment of the present invention, the preset operation on the first audio includes at least one of:
importing a first audio;
playing the first audio;
a save operation for the first audio;
and recording the first audio.
When the first audio is the audio which is recorded completely, the user can accept the import operation or the play operation of the first audio to play the first audio, and at this time, the target time period in the first audio can be deleted in response to the import operation or the play operation; when the first audio is the audio which is recorded but not stored, accepting the storage operation of the user on the first audio to store the first audio, and at this time, deleting the target time period in the first audio in response to the storage operation; when the first audio is the audio being recorded, the recording operation of the first audio by the user may be accepted to record the first audio, and at this time, the target time period in the first audio may be deleted in response to the recording operation.
102, deleting a target time period in the first audio to obtain a second audio under the condition that the target time period exists in the first audio;
it should be understood that, in the method provided by the embodiment of the present invention, the target time period is a time period in which the voltage amplitude of the audio electrical signal in the first audio is less than or equal to the preset amplitude threshold value and the time length is greater than the first preset time length threshold value.
Specifically, as shown in fig. 2, for a schematic diagram of a target time period in audio provided by an embodiment of the present invention, a position 201, a position 203, and a position 204 in fig. 2 may be defined as the target time period. The target time period may be a time period in which the human ear cannot hear or cannot hear sound, i.e., a time period in which the voltage amplitude of the electrical audio signal in the first audio frequency is less than or equal to-60 dB.
Moreover, in order to avoid the excessive processing of the first audio, which may result in the increase of the workload and the power consumption of the electronic device, the first preset duration threshold may be empirically set as a critical point of the waiting duration acceptable to the user, for example, the first preset duration threshold may be set to 5 seconds. Therefore, the time period within 5 seconds in which the human ears cannot hear or cannot hear the sound can be deleted, and the user is prevented from wasting time to wait for the audio playing in the time period. Or, in another embodiment, the user may further set the first preset duration threshold according to a preference, so that the audio processing method provided by the embodiment of the present invention is more personalized.
Specifically, when a preset operation of the user on the first audio is received, an audio recognition algorithm built in the audio application may be started, a target time period in the first audio is recognized, and the target time period is deleted.
Optionally, when the user is recording the first audio, in order to delete the target time period in the first audio in real time, the embodiment of the present invention may detect the target time period and delete the target time period during recording. Specifically, when the preset operation on the first audio includes a recording operation on the first audio, and in a case that the first audio has a target time period, deleting the target time period in the first audio to obtain a second audio, including:
under the condition that the first audio has the target time period, stopping recording the first audio, and deleting the target time period in the first audio;
after the recording of the first audio is suspended, if the voltage amplitude of the audio electrical signal is detected to be larger than a preset amplitude threshold value, the recording of the first audio is continued, and a second audio is obtained.
Specifically, in the process of recording the first audio, the target time period may be deleted by skipping the recording of the target time period, that is, in the case where the target time period is detected, the recording of the first audio is suspended and the detected target time period is deleted, and the second audio is generated.
And 103, generating a target audio according to the target time period and the second audio.
Specifically, in order to immediately process the first audio after receiving a preset operation of the user on the first audio, so as to provide the user with a target audio with a reasonable time interval of the audio electrical signal in time, the embodiment of the present invention provides a method and an apparatus for processing a first audio. Optionally, in the method provided in this embodiment of the present invention, generating the target audio piece according to the target time period and the second audio includes:
obtaining a position to be inserted in a second audio frequency based on the position of the target time period in the first audio frequency;
inserting audio electrical signals of interval time periods at a position to be inserted in the second audio to generate target audio;
the voltage amplitude of the audio electrical signal of the interval time period is smaller than or equal to a preset amplitude threshold value, and the time length of the interval time period is smaller than or equal to a second preset duration threshold value; the first preset duration threshold is greater than the second preset duration threshold.
It should be understood that, when the preset operation on the first audio includes one of an import operation, a play operation, or a save operation, in order to avoid that the audio before and after the target time period is too close to each other to make the human ear indistinguishable, the position of the target time period may be marked when the target time period is deleted, and then the interval time period may be inserted into the marked position, so that a time interval that the human ear can distinguish between the audio before and after the target time period can be provided.
Optionally, the interval time period is an audio that can not be heard by the human ear inserted with the second audio, as long as the audio functions before and after the interval, so the time length of the interval time period is not too long, and the second preset time threshold may be smaller than the first preset time threshold, for example, the second preset time threshold may be 1 second.
Further, in order to enable the user to select the audio that the user wants to play, after deleting the target time period or/and inserting the interval time period according to the above method, the embodiment of the present invention can additionally generate the target audio that corresponds to the first audio and has deleted the target time period, and present the first audio and the target audio together in the interface for the user to select.
Optionally, in order to enable the user to distinguish the first audio from the target audio and to link the first audio and the corresponding target audio, a suffix such as "[ abbreviated form ]" may be added to the name of the first audio as the name of the target audio for the user to distinguish.
The following describes embodiments of the present invention in detail by way of a flow diagram.
Specifically, as shown in fig. 3, for a flow diagram of responding to an import operation in the audio processing method provided by the embodiment of the present invention, a specific implementation process includes:
step 301, a user imports a first audio into an audio application;
step 302, starting an audio recognition algorithm, and detecting a target time period in a first audio;
step 303, deleting the target time period to generate a second audio;
step 304, inserting the gap time period in the second audio with the insertion position, generating the target audio, and simultaneously displaying the first audio and the target audio in the list.
Specifically, as shown in fig. 4, for a flow diagram of responding to a play operation in the audio processing method provided by the embodiment of the present invention, a specific implementation process includes:
step 401, a user plays a first audio;
step 402, starting an audio recognition algorithm, and detecting a target time period in a first audio;
step 403, deleting the target time period and generating a second audio;
and step 404, inserting the interval time period into the position with the insertion position in the second audio, generating the target audio, and simultaneously displaying the function buttons for playing the first audio and the target audio in the playing interface.
Specifically, as shown in fig. 5, for a flow diagram of responding to a save operation in the audio processing method provided by the embodiment of the present invention, a specific implementation process includes:
step 501, a user saves a first audio which is recorded;
step 502, starting an audio recognition algorithm, and detecting a target time period in a first audio;
step 503, deleting the target time period and generating a second audio;
step 504 inserts the gap period in the second audio with the inserted position, generates the target audio, and displays the first audio and the target audio in the list at the same time.
Specifically, as shown in fig. 6, for a flow diagram of responding to a recording operation in the audio processing method provided by the embodiment of the present invention, a specific implementation process includes:
601, a user starts to record a first audio;
step 602, starting an audio recognition algorithm;
step 603, detecting whether a target time period exists, and if the voltage amplitude of the audio electric signal is not detected to be less than or equal to a preset amplitude threshold value and the time period with the time length greater than a first preset time length threshold value, continuing to record the first audio;
step 604, if it is detected that the voltage amplitude of the audio electrical signal is less than or equal to a preset amplitude threshold value and the time length is greater than a time period of a first preset duration threshold value, stopping recording the first audio;
step 605, detecting whether the voltage amplitude of the current audio electric signal is greater than a preset amplitude threshold value or not under the condition that the recording of the first audio is suspended;
step 606, if the voltage amplitude of the current audio electric signal is detected to be larger than a preset amplitude threshold value, the first audio is continuously recorded, and whether a target time period occurs or not is continuously detected in the continuous recording process until the recording is finished and a second audio is generated;
step 607, inserting an interval time period at the position to be inserted in the second audio, generating the target audio, and simultaneously displaying the first audio and the target audio in the list.
Optionally, as shown in fig. 7, a schematic diagram of a play interface in the audio processing method according to the embodiment of the present invention is provided. After the user opens the audio playing interface, a 'normal playing mode' button and an 'intelligent time-saving playing mode' button can be displayed on the playing interface, so that the user can switch the playing mode when playing the audio. Wherein the "normal play mode" button corresponds to the first audio and the "smart time saving play mode" button corresponds to the target audio. In addition, "remind" can be shown below "the intelligent playback mode that saves time": a play time saving of 23%, i.e. 45 seconds, can be achieved. The word of' is used for prompting the user how much time the target audio frequency can save the user and the percentage of the saved time in the total time, so that the user can conveniently select the playing mode according to the playing requirement.
The audio processing method provided by the embodiment of the invention can detect the target time period in the first audio; under the condition that the first audio has the target time period, deleting the target time period in the first audio to obtain a second audio; generating a target audio according to the target time period and the second audio; the target time period is a time period in which the voltage amplitude of the electric signal in the first audio is smaller than or equal to a preset amplitude threshold value and the time length is larger than a first preset duration threshold value. The target time period in the audio can be detected, and the target audio with the target time period deleted can be generated, so that the playing time of the audio can be shortened under the condition of ensuring the audio quality, the time of a user can be saved, and the efficiency of the user in learning or working based on the audio can be improved.
An embodiment of the present invention further provides an electronic device 800, as shown in fig. 8, including:
a detection unit 801 for detecting a target time period in the first audio;
a deleting unit 802, configured to delete the target time period in the first audio to obtain a second audio when the target time period exists in the first audio;
a generating unit 803, configured to generate a target audio according to the target time period and the second audio.
Optionally, in an embodiment, before the step of detecting the target time period in the first audio, the electronic device further includes:
a receiving unit 804, configured to receive a preset operation on the first audio.
Optionally, in an embodiment, the preset operation on the first audio includes at least one of:
an import operation for the first audio;
playing the first audio;
a save operation on the first audio;
and recording the first audio.
Optionally, in an embodiment, when the preset operation on the first audio includes a recording operation on the first audio, the deleting unit 802 is configured to:
under the condition that the target time period exists in the first audio, pausing recording of the first audio and deleting the target time period in the first audio;
after the first audio is recorded in the pause mode, if the voltage amplitude of the audio electrical signal is detected to be larger than the preset amplitude threshold value, the first audio is recorded continuously, and the second audio is obtained.
Optionally, in an embodiment, the generating unit 803 is configured to:
obtaining a position to be inserted in the second audio based on the position of the target time period in the first audio;
inserting an audio electrical signal of an interval time period at a position to be inserted in the second audio to generate the target audio;
the voltage amplitude of the audio electrical signal of the interval time period is smaller than or equal to the preset amplitude threshold, and the time length of the interval time period is smaller than or equal to a second preset duration threshold; the first preset duration threshold is greater than the second preset duration threshold.
The electronic device 800 can implement the method of the embodiment of the method shown in fig. 1 to fig. 7, and specifically refer to the audio processing method of the embodiment shown in fig. 1 to fig. 7, which is not described again.
Figure 9 is a schematic diagram of a hardware configuration of an electronic device implementing various embodiments of the invention,
the electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device 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.
Wherein, the processor 910 is configured to detect a target time period in the first audio; under the condition that the first audio has the target time period, deleting the target time period in the first audio to obtain a second audio; generating a target audio according to the target time period and the second audio; the target time period is a time period in which the voltage amplitude of the electric signal in the first audio is less than or equal to a preset amplitude threshold value and the time length is greater than a first preset duration threshold value
The audio processing method provided by the embodiment of the invention can detect the target time period in the first audio; under the condition that the first audio has the target time period, deleting the target time period in the first audio to obtain a second audio; generating a target audio according to the target time period and the second audio; the target time period is a time period in which the voltage amplitude of the electric signal in the first audio is smaller than or equal to a preset amplitude threshold value and the time length is larger than a first preset duration threshold value. The target time period in the audio can be detected, and the target audio with the target time period deleted can be generated, so that the playing time of the audio can be shortened under the condition of ensuring the audio quality, the time of a user can be saved, and the efficiency of the user in learning or working based on the audio can be improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 910; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 901 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 901 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 902, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may provide audio output related to a specific function performed by the electronic device 900 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive audio or video signals. The input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or video obtained by an image capturing device (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 906. The image frames processed by the graphic processor 9041 may be stored in the memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 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 901 in case of the phone call mode.
The electronic device 900 also includes at least one sensor 905, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 9061 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 9061 and/or the backlight when the electronic device 900 is moved to the ear. As one type of motion sensor, an 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 an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 905 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 are not described in detail herein.
The display unit 906 is used to display information input by the user or information provided to the user. The Display unit 906 may include a Display panel 9061, and the Display panel 9061 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 907 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 9071 (e.g., operations by a user on or near the touch panel 9071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 9071 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 910, receives a command from the processor 910, and executes the command. In addition, the touch panel 9071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 907 may include other input devices 9072 in addition to the touch panel 9071. Specifically, the other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, and the like), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation on or near the touch panel 9071, the touch panel is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of the touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 908 is an interface for connecting an external device to the electronic apparatus 900. 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 908 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the electronic device 900 or may be used to transmit data between the electronic device 900 and external devices.
The memory 909 may be used to store software programs as well as various data. The memory 909 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 for 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 909 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 910 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 909 and calling data stored in the memory 909, thereby performing overall monitoring of the electronic device. Processor 910 may include one or more processing units; preferably, the processor 910 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 is to be appreciated that the modem processor described above may not be integrated into processor 910.
The electronic device 900 may further include a power supply 911 (e.g., a battery) for supplying power to various components, and preferably, the power supply 911 may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
In addition, the electronic device 900 includes some functional modules that are not shown, and thus are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 910, a memory 909, and a computer program that is stored in the memory 909 and can be run on the processor 910, and when the computer program is executed by the processor 910, the processes of the audio processing method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
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 above-mentioned audio 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. An audio processing method applied to an electronic device, the audio processing method comprising:
detecting a target time period in the first audio;
deleting the target time period in the first audio to obtain a second audio under the condition that the target time period exists in the first audio;
generating a target audio according to the target time period and the second audio;
the target time period is a time period in which the voltage amplitude of the electric signal in the first audio is smaller than or equal to a preset amplitude threshold value, and the time length is larger than a first preset duration threshold value.
2. The method of claim 1, wherein prior to the step of detecting the target time period in the first audio, the method further comprises:
and receiving a preset operation on the first audio.
3. The method of claim 2, wherein the preset operation on the first audio comprises at least one of:
an import operation for the first audio;
playing the first audio;
a save operation on the first audio;
and recording the first audio.
4. The method of claim 3, wherein when the preset operation on the first audio comprises a recording operation on the first audio, deleting the target time period in the first audio to obtain a second audio if the target time period exists in the first audio, comprising:
under the condition that the target time period exists in the first audio, pausing recording of the first audio and deleting the target time period in the first audio;
after the first audio is recorded in the pause mode, if the voltage amplitude of the audio electrical signal is detected to be larger than the preset amplitude threshold value, the first audio is recorded continuously, and the second audio is obtained.
5. The method of claim 3 or 4, wherein generating a target audio from the target time period and the second audio comprises:
obtaining a position to be inserted in the second audio based on the position of the target time period in the first audio;
inserting an audio electrical signal of an interval time period at a position to be inserted in the second audio to generate the target audio;
the voltage amplitude of the audio electrical signal of the interval time period is smaller than or equal to the preset amplitude threshold, and the time length of the interval time period is smaller than or equal to a second preset duration threshold; the first preset duration threshold is greater than the second preset duration threshold.
6. An electronic device, comprising:
a detection unit configured to detect a target time period in the first audio;
the deleting unit is used for deleting the target time period in the first audio to obtain a second audio under the condition that the target time period exists in the first audio;
the generating unit is used for generating target audio according to the target time period and the second audio;
the target time period is a time period in which the voltage amplitude of the electric signal in the first audio is smaller than or equal to a preset amplitude threshold value, and the time length is larger than a first preset duration threshold value.
7. The electronic device of claim 6, wherein prior to the step of detecting the target time period in the first audio, the electronic device further comprises:
a receiving unit, configured to receive a preset operation on the first audio.
8. The electronic device of claim 7, wherein the preset operation on the first audio comprises at least one of:
an import operation for the first audio;
playing the first audio;
a save operation on the first audio;
and recording the first audio.
9. The electronic device of claim 8, wherein when the preset operation on the first audio comprises a recording operation on the first audio, the deletion unit is configured to:
under the condition that the target time period exists in the first audio, pausing recording of the first audio and deleting the target time period in the first audio;
after the first audio is recorded in the pause mode, if the voltage amplitude of the audio electrical signal is detected to be larger than the preset amplitude threshold value, the first audio is recorded continuously, and the second audio is obtained.
10. The electronic device of claim 8 or 9, wherein the generating unit is to:
obtaining a position to be inserted in the second audio based on the position of the target time period in the first audio;
inserting an audio electrical signal of an interval time period at a position to be inserted in the second audio to generate the target audio;
the voltage amplitude of the audio electrical signal of the interval time period is smaller than or equal to the preset amplitude threshold, and the time length of the interval time period is smaller than or equal to a second preset duration threshold; the first preset duration threshold is greater than the second preset duration threshold.
CN201911221300.1A 2019-12-03 2019-12-03 Audio processing method and electronic equipment Pending CN111124349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911221300.1A CN111124349A (en) 2019-12-03 2019-12-03 Audio processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911221300.1A CN111124349A (en) 2019-12-03 2019-12-03 Audio processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111124349A true CN111124349A (en) 2020-05-08

Family

ID=70497302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911221300.1A Pending CN111124349A (en) 2019-12-03 2019-12-03 Audio processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111124349A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887480A (en) * 2021-01-22 2021-06-01 维沃移动通信有限公司 Audio signal processing method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040006767A1 (en) * 2002-07-02 2004-01-08 Robson Gary D. System, method, and computer program product for selective filtering of objectionable content from a program
CN101458943A (en) * 2008-12-31 2009-06-17 北京中星微电子有限公司 Sound recording control method and sound recording device
CN104064212A (en) * 2014-06-25 2014-09-24 深圳市中兴移动通信有限公司 Sound recording method and device
CN104157301A (en) * 2014-07-25 2014-11-19 广州三星通信技术研究有限公司 Method, device and terminal deleting voice information blank segment
CN105719673A (en) * 2016-01-25 2016-06-29 努比亚技术有限公司 Terminal and recording processing method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040006767A1 (en) * 2002-07-02 2004-01-08 Robson Gary D. System, method, and computer program product for selective filtering of objectionable content from a program
CN101458943A (en) * 2008-12-31 2009-06-17 北京中星微电子有限公司 Sound recording control method and sound recording device
CN104064212A (en) * 2014-06-25 2014-09-24 深圳市中兴移动通信有限公司 Sound recording method and device
CN104157301A (en) * 2014-07-25 2014-11-19 广州三星通信技术研究有限公司 Method, device and terminal deleting voice information blank segment
CN105719673A (en) * 2016-01-25 2016-06-29 努比亚技术有限公司 Terminal and recording processing method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887480A (en) * 2021-01-22 2021-06-01 维沃移动通信有限公司 Audio signal processing method and device, electronic equipment and readable storage medium
CN112887480B (en) * 2021-01-22 2022-07-29 维沃移动通信有限公司 Audio signal processing method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US20230214175A1 (en) Prompting method and mobile terminal
CN108540655B (en) Caller identification processing method and mobile terminal
CN108737904B (en) Video data processing method and mobile terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN107613131A (en) A kind of application program disturbance-free method and mobile terminal
CN111666009B (en) Interface display method and electronic equipment
CN110855921B (en) Video recording control method and electronic equipment
CN110753201B (en) Video recording method and device, electronic equipment and storage medium
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN111010608B (en) Video playing method and electronic equipment
CN110062273B (en) Screenshot method and mobile terminal
CN108124059B (en) Recording method and mobile terminal
CN110096203B (en) Screenshot method and mobile terminal
CN111443815A (en) Vibration reminding method and electronic equipment
CN111026305A (en) Audio processing method and electronic equipment
US20230037238A1 (en) Audio output mode switching method and electronic device
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN110795188A (en) Message interaction method and electronic equipment
CN111050214A (en) Video playing method and electronic equipment
CN110780751A (en) Information processing method and electronic equipment
CN108270928B (en) Voice recognition method and mobile terminal
CN110213437B (en) Editing method and mobile terminal
CN110471895B (en) Sharing method and terminal device
CN110213439B (en) Message processing method and terminal

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