CN110597438A - Method and device for determining audio clipping position, electronic equipment and storage medium - Google Patents
Method and device for determining audio clipping position, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110597438A CN110597438A CN201910809621.7A CN201910809621A CN110597438A CN 110597438 A CN110597438 A CN 110597438A CN 201910809621 A CN201910809621 A CN 201910809621A CN 110597438 A CN110597438 A CN 110597438A
- Authority
- CN
- China
- Prior art keywords
- audio
- cut
- waveform
- playing
- cutting
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/64—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a method and a device for determining an audio clipping position, electronic equipment and a storage medium. The method comprises the following steps: the method comprises the steps of displaying an audio cutting interface and playing audio to be cut, wherein the audio cutting interface comprises a waveform corresponding to the audio to be cut and a playing progress bar associated in the waveform, when a cutting position setting instruction is received, determining the current position of the playing progress bar in the waveform, taking the current position as a first position, adding the audio cutting bar at the first position, when a playing adjustment instruction is received, adjusting the playing progress bar to a second position pointed by the playing adjustment instruction in the waveform, receiving dragging operation acting on the audio cutting bar, dragging the audio cutting bar from the first position to the second position in the waveform according to the dragging operation, and determining the second position as the position to be cut of the audio to be cut. The position to be cut is positioned through the position of the playing progress bar in the waveform, so that the efficiency and the accuracy of determining the audio cutting position are improved.
Description
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method and an apparatus for determining an audio clipping position, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic equipment is more and more widely used and has more and more functions, and the electronic equipment becomes one of the necessary things in daily life of people. At present, electronic equipment can be used for users to cut audio, but the operation difficulty is higher, and the cutting effect is poorer.
Disclosure of Invention
In view of the foregoing, the present application provides a method, an apparatus, an electronic device, and a storage medium for determining an audio cropping position to solve the foregoing problems.
In a first aspect, an embodiment of the present application provides a method for determining an audio clipping position, where the method includes: displaying an audio cutting interface and playing audio to be cut, wherein the audio cutting interface comprises a waveform corresponding to the audio to be cut and a playing progress bar related to the waveform; when a cutting position setting instruction is received, determining the current position of the playing progress bar in the waveform, taking the current position as a first position, and adding an audio cutting bar at the first position; when a playing adjustment instruction is received, adjusting the playing progress bar to a second position pointed by the playing adjustment instruction in the waveform; receiving a dragging operation acted on the audio cutting strip, and dragging the audio cutting strip from the first position to the second position in the waveform according to the dragging operation; and determining the second position as the position to be cut of the audio to be cut.
In a second aspect, an embodiment of the present application provides an apparatus for determining an audio clipping position, where the apparatus includes: the interface display module is used for displaying an audio cutting interface and playing audio to be cut, wherein the audio cutting interface comprises a waveform corresponding to the audio to be cut and a playing progress bar related to the waveform; the first position determining module is used for determining the current position of the playing progress bar in the waveform when a cutting position setting instruction is received, taking the current position as a first position and adding an audio cutting bar at the first position; the second position adjusting module is used for adjusting the playing progress bar to a second position pointed by the playing adjusting instruction in the waveform when the playing adjusting instruction is received; the cutting strip dragging module is used for receiving dragging operation acting on the audio cutting strip and dragging the audio cutting strip from the first position to the second position in the waveform according to the dragging operation; and the to-be-cut-off position determining module is used for determining the second position as the to-be-cut-off position of the audio to be cut off.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the above method when the instructions are executed by the processor.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
The method, the device, the electronic equipment and the storage medium for determining the audio cutting position provided by the embodiment of the application display an audio cutting interface and play audio to be cut, wherein the audio cutting interface comprises a waveform corresponding to the audio to be cut and a playing progress bar associated in the waveform, when a cutting position setting instruction is received, the current position of the playing progress bar in the waveform is determined, the current position is used as a first position, the audio cutting bar is added at the first position, when a playing adjustment instruction is received, the playing progress bar is adjusted to a second position pointed by the playing adjustment instruction in the waveform, a dragging operation acting on the audio cutting bar is received, the audio cutting bar is dragged to the second position from the first position in the waveform according to the dragging operation, the second position is determined as the audio to be cut of the audio to be cut, and the audio to be cut position is positioned through the position of the playing progress bar in the waveform, so as to improve the efficiency and accuracy of audio clipping position determination.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method for determining an audio cropping position according to an embodiment of the present application;
FIG. 2 is a schematic view illustrating a first interface of an electronic device according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a second interface of an electronic device according to an embodiment of the present disclosure;
FIG. 4 is a flow chart illustrating a method for determining an audio cropping position according to another embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a third interface of an electronic device according to an embodiment of the present application;
fig. 6 shows a fourth interface schematic diagram of an electronic device provided in an embodiment of the present application;
fig. 7 is a flowchart illustrating step S213 of the audio cropping position determination method illustrated in fig. 4 of the present application;
FIG. 8 is a block diagram of an apparatus for determining an audio cropping position provided by an embodiment of the present application;
fig. 9 is a block diagram of an electronic device for executing a method for determining an audio cropping position according to an embodiment of the present application;
fig. 10 illustrates a storage unit for storing or carrying program code implementing a method for determining an audio cropping position according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the development of electronic device technology, the applied fields are more and more, for example, electronic devices are more and more applied to the field of audio cropping. The inventor finds that the scheme of clipping the audio through the electronic device can be mainly divided into two types, namely a waveform area operation and a preview bar area operation, wherein the waveform refers to a view showing the sound intensity of an audio playing area, and the preview bar refers to an overview chart showing the whole course of the audio and clipping position points.
The method comprises the steps of setting a waveform area, setting a start point position and an end point position of cutting, and dragging the waveform area to cut the audio. The waveform region operation may specifically include the steps of: 1. the user jumps the playing position by clicking a certain fixed position of the waveform, namely the user sets the position of the playing progress bar by clicking a certain position of the waveform and determines the position of the playing progress bar as the playing position; 2. playing audio to acquire and position audio content, and preliminarily confirming the starting position and the end position of cutting; 3. repeatedly adjusting the cutting strip, and playing and confirming whether the position of the cutting starting point is correct; 4. the end position of the cut is confirmed in the same manner.
However, in the audio clipping method based on the waveform area operation, when the audio file is long, it becomes difficult to determine the audio position by dragging the left and right clipping strips on the waveform, for example, when the total duration of the audio file is half an hour or more, and the clipping strips move slightly, the audio playing position is changed greatly, so that it is difficult to drag the clipping strips for positioning. However, although the waveform can be conveniently positioned after the waveform is amplified, the adjustment of the playing position of the audio overall situation cannot be performed, for example, after the waveform is amplified, if the starting position is set and then the ending position is set, the waveform needs to be reduced again for display, and the operation is inconvenient. In addition, based on the audio clipping mode of the waveform region operation, if the position of the audio clipping point needs to be accurately positioned, the position of the starting point and the position of the ending point of the clipping must be continuously adjusted, and the playing progress bar is moved to perform playing confirmation or the judgment is performed in cooperation with the waveform, which is very inconvenient.
Taking the preview bar area operation as an example, the left side and the right side of the preview bar are provided with the cutting bars in advance, and a user can perform preliminary setting of the cutting position by dragging the cutting bars on the two sides of the preview bar and then perform fine adjustment of the cutting position by adjusting the oscillogram. The preview strip area operation may specifically include the following steps: 1. the user confirms the time point of the starting point position which needs to be cut approximately through audio playing; 2. adjusting to a corresponding time point of the starting point position by dragging the cutting strip on the left side of the preview strip; 2. confirming the position of a specific time point by playing, and finely adjusting by using a cutting strip on the left side of the waveform area; 3. the end position of the cut is confirmed in the same manner.
However, based on the above audio cropping mode of the preview bar area operation, the cropping bar in the preview bar has the functions of clicking to change the playing position and dragging to crop, and the user can easily touch the cropping bar by mistake in interaction, so that the playing progress can be moved to the cropping position when the cropping bar is moved, and the operation is very inconvenient. Meanwhile, when the audio file is long, dragging the cropping bar on the preview bar causes a large change in the waveform area, and it is difficult to accurately locate the cropping position in the waveform (for example, if the waveform defaults to display 5 seconds of audio information, and the length of the audio file is 10 minutes, moving the preview bar causes the waveform to move at a movement speed 120 times, and it is difficult to accurately locate the cropping position to the target position of the waveform). In order to solve the problem of difficulty in clipping and positioning caused by long-term audio files, the display range can be adjusted by zooming the waveform area through two fingers, so that the waveform is adaptive to the moving speed of the clipping strip in the preview strip, the waveform is conveniently and accurately positioned by adjusting the clipping strip in the preview strip, however, the operation is implicit in the mode, the user needs to adjust the mode by himself to find the appropriate display range, and the use threshold is high.
In view of the above problems, the inventor finds and provides a method, an apparatus, an electronic device, and a storage medium for determining an audio clipping position, which are provided by the embodiments of the present application, to position a to-be-clipped position by a position of a playing progress bar in a waveform, so as to improve efficiency and accuracy of determining an audio clipping position. The specific method for determining the audio clipping position is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for determining an audio cropping position according to an embodiment of the present application. The method for determining the audio cutting position is used for positioning the position to be cut through the position of the playing progress bar in the waveform so as to improve the efficiency and the accuracy of determining the audio cutting position. In a specific embodiment, the method for determining the audio cropping position is applied to the apparatus 200 for determining the audio cropping position shown in fig. 8 and the electronic device 100 (fig. 9) configured with the apparatus 200 for determining the audio cropping position. The specific process of the present embodiment will be described below by taking an electronic device as an example, and it is understood that the electronic device applied in the present embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be explained in detail with respect to the flow shown in fig. 1, the method for determining the audio clipping position may specifically include the following steps:
step S101: and displaying an audio cutting interface and playing audio to be cut, wherein the audio cutting interface comprises a waveform corresponding to the audio to be cut and a playing progress bar associated in the waveform.
In some embodiments, the electronic device may display an audio cropping interface and play audio to be cropped, for example, the electronic device may run an audio cropping application in the foreground and display the audio cropping interface corresponding to the audio cropping application. In this embodiment, the electronic device may run the audio clipping application program in the foreground and display an audio clipping interface corresponding to the audio clipping application program when detecting a touch operation acting on an icon of the audio clipping application program; when the touch operation acting on the link corresponding to the audio cutting application program is detected, the audio cutting application program is operated on the foreground and an audio cutting interface corresponding to the audio cutting application program is displayed; or when receiving the voice information that instructs to start the audio cropping application program and is input by the user, running the audio cropping application program in the foreground and displaying an audio cropping interface and the like corresponding to the audio cropping application program, which is not limited herein.
In this embodiment, the audio cropping interface may at least include a waveform corresponding to the audio to be cropped and a playing progress bar associated in the waveform, that is, the waveform is displayed on the audio cropping interface, and the playing progress bar is displayed on the waveform, where the waveform is a view showing the sound intensity of an audio playing area of the audio to be cropped, and the playing progress bar is used to reflect the current playing position of the audio to be cropped. In one aspect, the waveform may be displayed in a partial region of an upper half portion of the audio cropping interface, a partial region of a lower half portion of the audio cropping interface, a partial region of a middle portion of the audio cropping interface, and the like, which is not limited herein. Referring to fig. 2, fig. 2 is a schematic view illustrating a first interface of an electronic device according to an embodiment of the present application, in fig. 2, a represents a waveform, B represents a playing progress bar, and C represents an audio preview bar, where, as shown in fig. 2, the waveform a is displayed on an audio cropping interface (the waveform a is displayed in a partial area of an upper half portion of the audio cropping interface, and the playing progress bar B is displayed on the waveform a in association with the waveform a.
In some embodiments, the electronic device may play the audio to be clipped, and it can be understood that the electronic device may start playing the audio to be clipped from a position where the playing progress bar is located, generally, the position where the playing progress bar is located is a starting position of the audio to be clipped, and then the electronic device may start playing the audio from a starting time of the audio to be clipped, which is not limited herein. The electronic device may automatically play the audio to be clipped when entering the audio clipping interface, and may also play the audio to be clipped when receiving a play instruction in the audio to be clipped, which is not limited herein.
Take the example of playing the clipped audio when the electronic device receives the playing instruction. The electronic equipment can detect the touch operation acted on the audio cutting interface by the user, wherein the touch operation acted on the audio cutting interface by the user can comprise single-finger click operation, multi-finger click operation, single-finger press operation, multi-finger press operation, single-finger slide operation, multi-finger slide operation, single-finger long-press operation, multi-finger long-press operation and the like. For example, the audio cropping interface may display a play control for controlling the audio to be cropped to be played or paused based on a user operation, and when a first target touch operation applied to the play control by the user is detected, it may be determined that the user triggers an audio play instruction, where the first target touch operation may include, but is not limited to, a single-finger click operation applied to the play control.
As one way, when it is confirmed that the user triggers the audio playing instruction, the electronic device may play the audio to be clipped in response to the audio playing instruction triggered by the user. In some embodiments, when it is confirmed that the user triggers the audio playing instruction, the electronic device may detect a position of the playing progress bar, where when the position of the playing progress bar is detected, the electronic device may start playing the audio to be cut from the position of the playing progress bar. In this embodiment, the position where the playing progress bar is located may include a position corresponding to any time between the start time and the end time of the audio to be clipped, and may generally include a position corresponding to the start time of the audio to be clipped and a position corresponding to the last time when the playing is paused, which is not limited herein. For example, if the total duration of the audio to be clipped is 10 minutes, and the position of the playing progress bar is the corresponding position of the audio to be clipped when the playing duration is 5 minutes, then it may be determined that the audio to be clipped starts to be played from 5 minutes. For example, the interface shown in fig. 2 may include a play control, and the electronic device may start to play the audio to be clipped when a touch operation acting on the play control is detected, which is not limited herein.
Step S102: when a cutting position setting instruction is received, determining the current position of the playing progress bar in the waveform, taking the current position as a first position, and adding an audio cutting bar at the first position.
In some embodiments, the electronic device may continue to detect the touch operation applied to the audio cropping interface while displaying the audio cropping interface and playing the audio to be cropped. For example, the audio cropping interface may further display a cropping position setting control, and when a second target touch operation acting on the cropping position setting control is detected, it may be determined that the electronic device receives the cropping position setting instruction, where the second target touch operation includes, but is not limited to, a single-finger click operation acting on the cropping position setting control. As shown in the interface diagram of fig. 2, the cutting position setting control may include a "start point setting" control, an "end point setting" control, and the like, which is not limited herein.
In this embodiment, when the electronic device receives the clipping position setting instruction, the electronic device may acquire the current position of the playing progress bar in the waveform in response to the clipping position setting instruction, and use the acquired current position as the first position. For example, when the electronic device receives a clipping position setting instruction when the audio to be clipped is played to the 5 th minute, and at this time, the current position of the playing progress bar is the position corresponding to the 5 th minute of the audio to be clipped, the position corresponding to the 5 th minute of the audio to be clipped may be taken as the first position. For another example, when the electronic device receives the clipping position setting instruction when the audio to be clipped is played to the 10 th minute, and at this time, the current position of the playing progress bar is the position corresponding to the 10 th minute of the audio to be clipped, the position corresponding to the 10 th minute of the audio to be clipped may be used as the first position, which is not described herein again.
As an embodiment, when it is confirmed that the clipping position setting instruction is received, it may be preliminarily confirmed that the first position is the to-be-clipped position, and an audio clipping strip may be generated and added at the first position, where the audio clipping strip is used to locate the to-be-clipped position of the audio to be clipped. As shown in fig. 3, fig. 3 shows a second interface schematic diagram of an electronic device according to an embodiment of the present application, in fig. 3, a represents a waveform, B represents a playing progress bar, C represents an audio preview bar, and D represents an audio cropping bar, as a manner, when an electronic device receives a cropping position setting instruction during playing of an audio to be cropped, a current position of the playing progress bar in the waveform may be a position shown by the audio cropping bar D in fig. 3, at this time, the current position may be taken as a first position and the audio cropping bar D is added, it can be understood that the audio to be cropped continues to be played, and the playing progress bar C may move from a position where the audio cropping bar D is located to a position shown in fig. 3 along with the playing progress.
Step S103: and when a playing adjustment instruction is received, adjusting the playing progress bar to a second position pointed by the playing adjustment instruction in the waveform.
In some embodiments, the electronic device may continue to detect the touch operation applied to the audio cropping interface while displaying the audio cropping interface and continuing to play the audio to be cropped. For example, the audio cropping interface may further display a play adjustment control, and when a third target touch operation acting on the play adjustment control is detected, it may be determined that the electronic device receives a play adjustment instruction, where the third target touch operation includes, but is not limited to, a click operation and a slide operation acting on the play adjustment control. The play adjustment control may include a waveform, that is, when a dragging operation acting on the waveform is detected, it may be determined that a play adjustment instruction is received.
In this embodiment, when the electronic device receives the play adjustment instruction, the electronic device may adjust the play progress bar to the position pointed by the play adjustment instruction in the waveform in response to the play adjustment instruction, and use the position pointed by the play adjustment instruction as the second position, which can be understood that the audio to be cut is played from the second position. For example, when the second position pointed by the play adjustment instruction is the position corresponding to the 2 nd minute of the audio to be clipped, the play progress bar may be adjusted to the position corresponding to the 2 nd minute of the audio to be clipped in response to the play adjustment instruction. For another example, if the play adjustment control is a waveform and the play adjustment command is triggered by a dragging operation acting on the waveform, when the dragging operation acting on the waveform stops, the position of the play progress bar is the second position pointed by the audio adjustment command.
Step S104: and receiving a dragging operation acted on the audio cutting strip, and dragging the audio cutting strip from the first position to the second position in the waveform according to the dragging operation.
In some embodiments, in the process that the electronic device starts playing the audio to be clipped from the second position in response to the playing adjustment instruction, the user may know the audio content of the audio to be clipped, and determine whether to clip the audio to be clipped from the second position based on the known audio content of the audio to be clipped, wherein when the user determines to clip the audio to be clipped from the second position, the audio clipping bar may be dragged from the first position to the second position, and the audio to be clipped is clipped at the second position, and when the user determines not to clip the audio to be clipped from the second position, the second position may be reset, and the audio to be clipped is clipped at the reset second position.
In this embodiment, when the user determines that the audio to be clipped is clipped from the second position determined in the above step, the audio clipping strip may be dragged, and accordingly, the electronic device receives a dragging operation applied to the audio clipping strip, and drags the audio clipping strip from the first position to the second position in the waveform according to the dragging operation, so as to select the position to be clipped. In some embodiments, the audio crop bar may be controlled to move to a position completely coinciding with the first position based on the drag operation acting on the audio crop bar, and the audio crop bar may also be controlled to move to a position having a certain error from the first position based on the drag operation acting on the audio crop bar, for example, the audio crop bar may be controlled to be located to the left of the first position or the audio crop bar may be controlled to be located to the right of the first position, and so on. Optionally, in this embodiment, a position where the audio crop bar position completely coincides with the first position is controlled.
For example, if the total duration of the audio to be cut is 10 minutes, the second position determined based on the play adjustment instruction is the position corresponding to the audio to be cut when the play duration is 5 minutes, the electronic device starts to play the audio to be cut from the 5 th minute in response to the play adjustment instruction, during the playing process of the audio to be cut, the user may determine whether the audio content corresponding to the second position needs to be cut, when the audio to be cut is played for 30 seconds, that is, the position where the play progress bar is located at the position of 5 minutes and 30 seconds, if the user determines to cut the audio to be cut from the second position, the user may drag the audio cutting bar to the position of 5 minutes.
Step S105: and determining the second position as the position to be cut of the audio to be cut.
In some implementations, after dragging the audio crop bar to the second location, the second location can be determined as the location to crop of the audio to be cropped.
An embodiment of the application provides a method for determining an audio clipping position, which displays an audio clipping interface and plays an audio to be clipped, where the audio clipping interface includes a waveform corresponding to the audio to be clipped and a playing progress bar associated in the waveform, when a clipping position setting instruction is received, determines a current position of the playing progress bar in the waveform, takes the current position as a first position and adds the audio clipping bar at the first position, when a playing adjustment instruction is received, adjusts the playing progress bar to a second position pointed by the playing adjustment instruction in the waveform, receives a dragging operation applied to the audio clipping bar, drags the audio clipping bar from the first position to the second position in the waveform according to the dragging operation, determines the second position as the audio to be clipped position of the audio to be clipped, and thereby locates the audio to be clipped position by the position of the playing progress bar in the waveform, so as to improve the efficiency and accuracy of audio clipping position determination.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for determining an audio cropping position according to another embodiment of the present application. As will be described in detail with respect to the flow shown in fig. 4, the method for determining the audio clipping position may specifically include the following steps:
step S201: and displaying an audio cutting interface.
For detailed description of step S201, please refer to step S101, which is not described herein again.
Step S202: and responding to a play position selection instruction acting on the audio cutting interface, and adjusting the play progress bar to a third position pointed by the play position selection instruction in the waveform.
In some embodiments, the electronic device may detect a touch operation applied to the audio cropping interface, for example, the audio cropping interface may be displayed with a play position selection control, and when a fourth target touch operation applied to the play position selection control is detected, it may be determined that the user triggers a play position selection instruction, where the fourth target touch operation may include, but is not limited to, a sliding operation, a clicking operation, and the like applied to the play position selection control.
As one mode, when it is confirmed that the user triggers the play position selection instruction, the electronic device may adjust the play progress bar to a position pointed by the play position selection instruction in the waveform in response to the play position selection instruction triggered by the user, and use the position pointed by the play position selection instruction as the third position. For example, if the play position selection instruction indicates a position of the audio to be clipped at the 5 th minute, the electronic device may adjust the play progress bar to a position corresponding to the 5 th minute of the audio to be clipped in the waveform; for another example, if the play position selection instruction indicates a position of the audio to be cropped at the 6 th minute, the electronic device may adjust the play progress bar to a position corresponding to the 6 th minute of the audio to be cropped in the waveform.
In some embodiments, the audio cropping interface of the electronic device may further include an audio preview bar, wherein the audio preview bar is used to show the waveform global of the audio to be cropped. For example, the waveform is displayed in a partial region of the upper half of the audio cropping interface and the audio preview bar is displayed in a partial region of the lower half of the audio cropping interface, the waveform is displayed in a partial region of the lower half of the audio cropping interface and the audio preview bar is displayed in a partial region of the upper half of the audio cropping interface, the waveform and the audio preview bar are both displayed in a partial region of the lower half of the audio cropping interface, and the like. Referring to fig. 2 again, in fig. 2, C represents an audio preview bar, it is understood that the audio preview bar C shown in fig. 2 is disposed below the waveform a, and in other embodiments, the audio preview bar C may also be disposed above the waveform a, and the like, which is not limited herein.
In this embodiment, the electronic device may detect a touch operation acting on the audio preview strip, and when detecting a fourth target touch operation acting on the audio preview strip by the user, may determine that the user triggers a play position selection instruction, where the fourth target touch operation may include, but is not limited to, a sliding operation, a clicking operation, and the like acting on the audio preview strip. Accordingly, the electronic device may adjust the play progress bar to a third position pointed by the play position selection instruction in the waveform in response to a touch operation (play position selection instruction) applied to the audio preview bar.
Step S203: and playing the audio to be cut from the third position.
In some embodiments, when the playing progress bar is adjusted to the third position, the audio to be clipped can be played from the third position.
Step S204: when a cutting position setting instruction is received, determining the current position of the playing progress bar in the waveform, taking the current position as a first position, and adding an audio cutting bar at the first position.
Step S205: when a first dragging gesture acted on the waveform is received, the playing progress bar is adjusted to a second position pointed by the first dragging gesture in the waveform according to the first dragging gesture.
For detailed description of steps S204 to S205, please refer to steps S102 to S103, which are not described herein again.
Step S206: and adding an identification strip at the second position, wherein the identification strip is used for identifying the second position.
In some embodiments, after the playing progress bar is adjusted to the second position pointed by the playing adjustment instruction, the electronic device may play the audio to be cut in response to the playing adjustment instruction, and add an identification bar at the second position, where the identification bar is used to identify the second position, so as to achieve automatic recording of the adjusted playing start position (second position), and without self-memory of a user, the accurate positioning of the cutting position may be performed more conveniently. In some embodiments, a marker bar may be generated and displayed at a second location in the waveform, wherein the marker bar may include, but is not limited to, a marker bar having a different color than the playing progress bar, a marker bar having a different shape than the playing progress bar, and a marker bar having a different length/width than the playing progress bar. It is understood that based on the identification strip, the user may visually learn the second position from the audio cropping interface. Referring to fig. 5, fig. 5 is a schematic view illustrating a third interface of an electronic device according to an embodiment of the present application, in fig. 5, a represents a waveform, C represents an audio preview bar, and E represents a logo bar, where, as shown in fig. 5, the waveform a is displayed on an audio cropping interface, and the logo bar E is displayed on the waveform a to identify a second location.
Step S207: and responding to the play pause instruction, and pausing to play the audio to be cut.
In some embodiments, in the process of playing the audio to be cut, if the user determines that the audio to be cut can be cut from the position where the identification strip is located based on the obtained audio content of the audio to be cut, the user may click the play control displayed on the audio cutting interface to control the electronic device to pause playing the audio to be cut. Accordingly, when receiving a play pause instruction triggered by a user, for example, when the electronic device detects a click operation for acting on the play control, the electronic device may pause playing the audio to be cut.
Step S208: and receiving a dragging operation acted on the audio cutting strip, and dragging the audio cutting strip to a position superposed with the identification strip in the waveform according to the dragging operation.
As one mode, when it is determined that the user triggers the clipping position setting instruction, the electronic device may add an audio clipping bar to a position where the playing progress bar is located in response to the clipping position setting instruction triggered by the user. When the audio cutting strip is dragged to the position completely coinciding with the identification strip based on the dragging operation of the user, the position where the identification strip is located can be set as the position to be cut, and when the audio cutting strip is dragged to the position where a certain error exists with the position where the identification strip is located based on the dragging operation of the user, the position where the audio cutting strip is located can be set as the position to be cut, wherein the error is within an allowed error range. Therefore, in the embodiment, the cutting positioning function is integrated into the playing progress bar, the consistency of determining the position to be cut by the user playing the audio and setting the cutting operation at the position is maintained, and the defect that the cutting position is difficult to position conveniently in the long audio of the current scheme is solved.
Step S209: and determining the second position as the position to be cut of the audio to be cut.
For a detailed description of step S209, please refer to step S105, which is not described herein again.
Step S210: when a second dragging gesture acting on the audio cutting strip is received, responding to the second dragging gesture, and adjusting the audio cutting strip to a fourth position pointed by the second dragging gesture in the waveform.
In some embodiments, after determining the position to be clipped, if the position to be clipped still needs to be adjusted, the electronic device may drag the audio clip strip to adjust the position. Specifically, the electronic device may detect a drag gesture (denoted as a second drag gesture) acting on the audio cutting bar, and when the second drag gesture acting on the audio cutting bar is detected, may adjust the audio cutting bar to a position pointed by the second drag gesture in the waveform in response to the second drag gesture, and denote the position pointed by the second drag gesture as a fourth position.
Step S211: and determining the fourth position as the to-be-cut position of the to-be-cut audio.
Further, when the second drag gesture acting on the audio cutting bar is detected to stop or end, a fourth position pointed by the second drag gesture may be acquired, and the fourth position is determined as the to-be-cut position of the audio to be cut.
In the embodiment, a waveform image and an audio preview bar are integrated in the audio cropping interface. The audio preview bar provides full time domain waveform display and play position cursor display functions of the current waveform. In order to realize the function, the drawing of the waveform, the playing vernier and the region to be cut and cut can be completed in an onDraw method of the View, and meanwhile, the position of the playing vernier is dynamically updated in the playing process.
The waveform diagram provides functions of dynamically adjusting and drawing a cutting start node, a cutting end node, a cutting time region, displaying waveform details and the like of the waveform. In order to realize the function, a mode of self-defining RecycleView + self-defining ItemView can be adopted for realizing. Drawing the waveform details of the nodes at intervals of 6s by ItemView, and simultaneously drawing logics of a cutting area, a cutting starting point position and a cutting end point position can also be realized by ItemView. The specific logic for processing user interaction in the RecycleView tracks Touch events of fingers of a user, and transmits displacement data of corresponding click events to ItemView through an interface to trigger the ItemView to redraw so as to refresh a new clipping area and a new starting position on an audio clipping interface.
Waveform data, cutting start, cutting end and other data need to be shared between the oscillogram and the audio preview strip, and two views need to be linked when the oscillogram and the audio preview strip are displayed simultaneously.
Step S212: and obtaining a plurality of positions to be cut, wherein the positions to be cut comprise a starting point position and a final point position of the to-be-cut.
In this embodiment, based on the above-mentioned mode of setting of treating the position of tailorring, the user can set up a plurality of positions of waiting to tailor on the waveform, and a plurality of positions of waiting to tailor can include the starting point position of waiting to tailor and the end point position of waiting to tailor, can understand, a plurality of positions of waiting to tailor can include a plurality of starting point positions of waiting to tailor and a plurality of end point positions of waiting to tailor, wherein, a plurality of starting point positions of waiting to tailor and a plurality of end point positions of waiting to tailor one-to-one, thereby can realize following certain audio frequency of waiting to tailor and tailor multistage audio data. In some embodiments, by taking an example that the multiple positions to be cut include a start position to be cut and an end position to be cut, please refer to fig. 6, fig. 6 illustrates a fourth interface schematic diagram of the electronic device according to an embodiment of the present disclosure, in fig. 6, a represents a waveform, C represents an audio preview bar, D1 represents a start position to be cut, and D2 represents an end position to be cut, where the start position D1 to be cut may be generated by a "start point setting" control, and the end position D2 may be generated by a "end point setting" control.
Step S213: and responding to a cutting instruction, and cutting the audio to be cut between the starting point position and the end point position of the audio to be cut.
In some embodiments, the electronic device may detect a touch operation applied to the audio cropping interface, for example, the audio cropping interface may be displayed with an audio cropping control, and may determine that a cropping instruction is received when a fifth target touch operation applied to the audio cropping control is detected, where the fifth target touch operation may include, but is not limited to, a single-finger click operation applied to the audio cropping control. Correspondingly, when detecting a fifth target touch operation acting on the audio cutting control, the electronic device may cut the audio to be cut between the start point position and the end point position of the audio to be cut in response to the fifth target touch operation.
The cutting of audio to be cut between the position of a starting point to be cut and the position of an ending point to be cut can depend on an android.media.media extractor class originally provided by Android, the class can be used for reading audio stream data in an audio file from a specified time node and reading the audio stream data into a buffer area each time, then whether the time of the currently read file exceeds a specified time (the time between the position of the starting point to be cut and the position of the ending point to be cut) is dynamically judged, the reading and copying process of the stream is stopped if the time exceeds the specified time, and if the time does not reach the specified time, the stream is continuously and circularly read and copied to a new file. After the file interception is finished, the actual corresponding node of the needed waveform data can be obtained through dynamic calculation through the interception start time node and the interception finish time node, and the interception and the storage of the waveform data can be finished after the node is determined.
Referring to fig. 7, fig. 7 is a flowchart illustrating step S213 of the method for determining an audio cropping position shown in fig. 4 according to the present application. As will be explained in detail with respect to the flow shown in fig. 7, the method may specifically include the following steps:
step S2131: and when a deleting instruction is received, responding to the deleting instruction to cut and delete the audio to be cut between the starting point position and the end point position of the audio to be cut.
In some implementations, the audio display interface of the electronic device can include an audio deletion control, as shown in fig. 6. The electronic device may detect a touch operation acting on the audio deletion control, and may determine that a deletion instruction is received when a fifth target touch operation acting on the audio deletion control is detected, where the fifth target touch operation may include, but is not limited to, a single-finger click operation acting on the audio deletion control. Correspondingly, when detecting a fifth target touch operation acting on the audio deleting control, the electronic device may respond to the fifth target touch operation to cut and delete the audio to be cut between the starting point position and the ending point position of the audio to be cut.
Step S2132: and when receiving an extracting instruction, responding to the extracting instruction to cut and extract the audio to be cut between the starting point position and the end point position of the audio to be cut.
In some implementations, an audio display interface of the electronic device can include an audio extraction control, as shown in fig. 6. The electronic device may detect a touch operation acting on the audio extraction control, and may determine that an extraction instruction is received when a fifth target touch operation acting on the audio extraction control is detected, where the fifth target touch operation may include, but is not limited to, a single-finger click operation acting on the audio extraction control. Correspondingly, when detecting a fifth target touch operation acting on the audio extraction control, the electronic device may cut and extract the audio to be cut between the start point position and the end point position of the audio to be cut in response to the fifth target touch operation.
In another embodiment of the present application, a method for determining an audio clipping position is provided, where an audio clipping interface is displayed, a play position selection instruction acting on the audio clipping interface is responded, a play progress bar is adjusted to a third position pointed by the play position selection instruction in a waveform, and an audio to be clipped is played from the third position. When a cutting position setting instruction is received, determining the current position of the playing progress bar in the waveform, taking the current position as a first position, adding an audio cutting bar at the first position, adjusting the playing progress bar to a second position pointed by a first dragging gesture in the waveform according to the first dragging gesture when a first dragging gesture acting on the waveform is received, adding an identification bar at the second position, wherein the identification bar is used for identifying the second position, responding to a playing pause instruction, and pausing to-be-cut audio. And receiving the dragging operation acted on the audio cutting strip, dragging the audio cutting strip to a position superposed with the identification strip in the waveform according to the dragging operation, and determining the second position as the position to be cut of the audio to be cut. When a second dragging gesture acting on the audio cutting strip is received, responding to the second dragging gesture, adjusting the audio cutting strip to a fourth position pointed by the second dragging gesture in the waveform, and determining the fourth position as a to-be-cut position of the audio to be cut. And obtaining a plurality of positions to be cut, wherein the positions to be cut comprise a starting point position to be cut and a final point position to be cut, and cutting the audio to be cut between the starting point position to be cut and the final point position to be cut in response to a cutting instruction. Compared with the method for determining the audio cutting position shown in fig. 1, in this embodiment, the position to be cut can be adjusted by adjusting the waveform and the cutting bar, and the audio to be cut is cut when the position to be cut includes the starting point position and the ending point position of the audio to be cut, so that the efficiency and the accuracy of audio cutting are improved.
Referring to fig. 8, fig. 8 is a block diagram illustrating an apparatus 200 for determining an audio clipping position according to an embodiment of the present application. As will be explained below with respect to the block diagram shown in fig. 8, the audio cropping position determining device 200 includes: an interface display module 210, a first position determining module 220, a second position adjusting module 230, a clipping bar dragging module 240, and a to-be-clipped position determining module 250, wherein:
the interface display module 210 is configured to display an audio cutting interface and play an audio to be cut, where the audio cutting interface includes a waveform corresponding to the audio to be cut and a play progress bar associated with the waveform. Further, the interface display module 210 includes: the interface display submodule, the third position adjustment submodule and the audio playing submodule, wherein:
and the interface display submodule is used for displaying an audio cutting interface.
And the third position adjusting submodule is used for responding to a playing position selection instruction acting on the audio cutting interface and adjusting the playing progress bar to a third position pointed by the playing position selection instruction in the waveform. Further, the audio cropping interface further includes an audio preview bar for displaying a waveform global of the audio to be cropped, and the third position adjustment submodule includes: a third position adjusting unit, wherein:
and the third position adjusting unit is used for responding to a playing position selection instruction acting on the audio preview bar and adjusting the playing progress bar to a third position pointed by the playing position selection instruction in the waveform.
And the audio playing sub-module is used for playing the audio to be cut from the third position.
The first position determining module 220 is configured to determine, when a clipping position setting instruction is received, a current position of the play progress bar in the waveform, use the current position as a first position, and add an audio clipping bar at the first position.
The second position adjusting module 230 is configured to, when a play adjusting instruction is received, adjust the play progress bar to a second position pointed by the play adjusting instruction in the waveform. Further, the second position adjustment module 230 includes: a second position adjustment submodule, wherein:
and the second position adjusting submodule is used for adjusting the playing progress bar to a second position pointed by the first dragging gesture in the waveform according to the first dragging gesture when the first dragging gesture acted on the waveform is received.
And a clip strip dragging module 240, configured to receive a dragging operation applied to the audio clip strip, and drag the audio clip strip from the first location to the second location in the waveform according to the dragging operation. Further, the crop bar drag operation 240 includes: the crop strip drags the sub-module, wherein:
and the cutting strip dragging submodule is used for receiving dragging operation acted on the audio cutting strip and dragging the audio cutting strip to a position superposed with the identification strip according to the dragging operation in the waveform.
A to-be-cropped position determining module 250, configured to determine the second position as a to-be-cropped position of the audio to be cropped.
Further, the apparatus 200 for determining an audio cropping position further comprises:
and the identification strip adding module is used for adding an identification strip at the second position, and the identification strip is used for identifying the second position.
Further, the apparatus 200 for determining an audio cropping position further comprises: fourth position adjustment module and wait to cut position update module, wherein:
and the fourth position adjusting module is used for responding to a second dragging gesture to adjust the audio cutting bar to a fourth position pointed by the second dragging gesture in the waveform when the second dragging gesture acting on the audio cutting bar is received.
And the to-be-cut position updating module is used for determining the fourth position as the to-be-cut position of the audio to be cut.
Further, the apparatus 200 for determining an audio cropping position further comprises: a pause play module, wherein:
and the pause playing module is used for responding to the play pause instruction and pausing the playing of the audio to be cut.
Further, the apparatus 200 for determining an audio cropping position further comprises: wait to cut out position and obtain module and cut out the module, wherein:
and the to-be-cut position obtaining module is used for obtaining a plurality of to-be-cut positions, and the plurality of to-be-cut positions comprise a to-be-cut starting point position and a to-be-cut final point position.
And the cutting module is used for responding to a cutting instruction and cutting the audio to be cut between the starting point position and the end point position of the audio to be cut. Further, the cropping module comprises: a clipping deletion sub-module and a clipping extraction sub-module, wherein:
and the cutting and deleting submodule is used for responding to the deleting instruction to cut and delete the audio to be cut between the starting point position to be cut and the end point position to be cut when the deleting instruction is received.
And the cutting and extracting submodule is used for responding to the extracting instruction to cut and extract the audio to be cut between the starting point position to be cut and the end point position to be cut when the extracting instruction is received.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 9, a block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a display 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform the methods as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The Display 130 is used for displaying information input by a user, information provided to the user, and various graphical user interfaces of the electronic device 100, which may be formed by graphics, text, icons, numbers, videos, and any combination thereof, and in one example, the Display 130 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED), which is not limited herein.
Referring to fig. 10, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 300 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
To sum up, the method, the apparatus, the electronic device, and the storage medium for determining an audio clipping position provided in this embodiment of the present application display an audio clipping interface and play an audio to be clipped, where the audio clipping interface includes a waveform corresponding to the audio to be clipped and a play progress bar associated in the waveform, when a clipping position setting instruction is received, determine a current position of the play progress bar in the waveform, take the current position as a first position and add the audio clipping bar at the first position, when a play adjustment instruction is received, adjust the play progress bar to a second position to which the play adjustment instruction points in the waveform, receive a dragging operation applied to the audio clipping bar, drag the audio clipping bar from the first position to the second position in the waveform according to the dragging operation, determine the second position as the audio to be clipped position of the audio to be clipped, thereby positioning the audio to be clipped position by the position of the play progress bar in the waveform, so as to improve the efficiency and accuracy of audio clipping position determination.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (12)
1. A method for determining audio cropping positions, the method comprising:
displaying an audio cutting interface and playing audio to be cut, wherein the audio cutting interface comprises a waveform corresponding to the audio to be cut and a playing progress bar related to the waveform;
when a cutting position setting instruction is received, determining the current position of the playing progress bar in the waveform, taking the current position as a first position, and adding an audio cutting bar at the first position;
when a playing adjustment instruction is received, adjusting the playing progress bar to a second position pointed by the playing adjustment instruction in the waveform;
receiving a dragging operation acted on the audio cutting strip, and dragging the audio cutting strip from the first position to the second position in the waveform according to the dragging operation;
and determining the second position as the position to be cut of the audio to be cut.
2. The method according to claim 1, wherein after adjusting the playing progress bar to the second position pointed by the playing adjustment instruction in the waveform when receiving the playing adjustment instruction, further comprising:
adding an identification strip at the second position, wherein the identification strip is used for identifying the second position;
the receiving a drag operation acting on the audio clip strip and dragging the audio clip strip from the first position to the second position in the waveform according to the drag operation includes:
and receiving a dragging operation acted on the audio cutting strip, and dragging the audio cutting strip to a position superposed with the identification strip in the waveform according to the dragging operation.
3. The method of claim 1, wherein the displaying the audio cropping interface and playing the audio to be cropped comprises:
displaying an audio cutting interface;
responding to a play position selection instruction acting on the audio cutting interface, and adjusting the play progress bar to a third position pointed by the play position selection instruction in the waveform;
and playing the audio to be cut from the third position.
4. The method according to claim 3, wherein the audio cropping interface further comprises an audio preview bar for showing a waveform global of the audio to be cropped, and the adjusting the play progress bar to a third position in the waveform pointed by the play position selection instruction in response to the play position selection instruction acting on the audio cropping interface comprises:
and responding to a playing position selection instruction acting on the audio preview bar, and adjusting the playing progress bar to a third position pointed by the playing position selection instruction in the waveform.
5. The method of claim 1, wherein the adjusting the playing progress bar to the second position in the waveform pointed by the playing adjustment instruction when the playing adjustment instruction is received comprises:
when a first dragging gesture acted on the waveform is received, the playing progress bar is adjusted to a second position pointed by the first dragging gesture in the waveform according to the first dragging gesture.
6. The method according to claim 1, wherein after determining the second position as a to-be-cropped position of the audio to be cropped, further comprising:
when a second dragging gesture acting on the audio cutting strip is received, responding to the second dragging gesture to adjust the audio cutting strip to a fourth position pointed by the second dragging gesture in the waveform;
and determining the fourth position as the to-be-cut position of the to-be-cut audio.
7. The method of any of claims 1-6, wherein prior to receiving a drag operation on the audio crop bar and dragging the audio crop bar from the first location to the second location in the waveform in accordance with the drag operation, further comprising:
and responding to the play pause instruction, and pausing to play the audio to be cut.
8. The method according to any one of claims 1-6, wherein after determining the second position as a position to be cropped of the audio to be cropped, further comprising:
obtaining a plurality of positions to be cut, wherein the positions to be cut comprise a starting point position and a final point position of the to-be-cut;
and responding to a cutting instruction, and cutting the audio to be cut between the starting point position and the end point position of the audio to be cut.
9. The method according to claim 8, wherein the clipping the audio to be clipped between the position of the start point and the position of the end point of the audio to be clipped in response to the clipping instruction comprises:
when a deleting instruction is received, responding to the deleting instruction to cut and delete the audio to be cut between the starting point position and the end point position of the audio to be cut; or
And when receiving an extracting instruction, responding to the extracting instruction to cut and extract the audio to be cut between the starting point position and the end point position of the audio to be cut.
10. An apparatus for determining audio cropping positions, the apparatus comprising:
the interface display module is used for displaying an audio cutting interface and playing audio to be cut, wherein the audio cutting interface comprises a waveform corresponding to the audio to be cut and a playing progress bar related to the waveform;
the first position determining module is used for determining the current position of the playing progress bar in the waveform when a cutting position setting instruction is received, taking the current position as a first position and adding an audio cutting bar at the first position;
the second position adjusting module is used for adjusting the playing progress bar to a second position pointed by the playing adjusting instruction in the waveform when the playing adjusting instruction is received;
the cutting strip dragging module is used for receiving dragging operation acting on the audio cutting strip and dragging the audio cutting strip from the first position to the second position in the waveform according to the dragging operation;
and the to-be-cut-off position determining module is used for determining the second position as the to-be-cut-off position of the audio to be cut off.
11. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-9.
12. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910809621.7A CN110597438A (en) | 2019-08-29 | 2019-08-29 | Method and device for determining audio clipping position, electronic equipment and storage medium |
PCT/CN2020/109842 WO2021036868A1 (en) | 2019-08-29 | 2020-08-18 | Audio cutting position determination method and apparatus, electronic device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910809621.7A CN110597438A (en) | 2019-08-29 | 2019-08-29 | Method and device for determining audio clipping position, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110597438A true CN110597438A (en) | 2019-12-20 |
Family
ID=68856215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910809621.7A Pending CN110597438A (en) | 2019-08-29 | 2019-08-29 | Method and device for determining audio clipping position, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110597438A (en) |
WO (1) | WO2021036868A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021036868A1 (en) * | 2019-08-29 | 2021-03-04 | Oppo广东移动通信有限公司 | Audio cutting position determination method and apparatus, electronic device, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090136201A1 (en) * | 2003-10-28 | 2009-05-28 | Canon Kabushiki Kaisha | Image processing apparatus |
CN102123201A (en) * | 2011-01-20 | 2011-07-13 | 深圳市五巨科技有限公司 | Ringtone shearing method and device of mobile terminal |
CN102833394A (en) * | 2011-06-17 | 2012-12-19 | 沈阳晨讯希姆通科技有限公司 | Mobile phone capable of generating ring of the mobile phone, and method for generating ring thereof |
CN105635418A (en) * | 2014-10-31 | 2016-06-01 | 东莞宇龙通信科技有限公司 | Method and device for cutting bell |
CN108847258A (en) * | 2018-06-10 | 2018-11-20 | 北京酷我科技有限公司 | A kind of implementation method intercepting Audio Controls |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101345790A (en) * | 2007-07-09 | 2009-01-14 | 上海基信通讯技术有限公司 | Method for editing audio files in mobile phone |
CN102176731A (en) * | 2010-12-27 | 2011-09-07 | 华为终端有限公司 | Method for intercepting audio file or video file and mobile phone |
JP6677038B2 (en) * | 2016-03-24 | 2020-04-08 | ヤマハ株式会社 | Data position determination method, data position determination device, and computer program |
CN108712671A (en) * | 2018-04-26 | 2018-10-26 | 国政通科技股份有限公司 | Monitor video document play-back method, device and terminal device |
CN110597438A (en) * | 2019-08-29 | 2019-12-20 | Oppo广东移动通信有限公司 | Method and device for determining audio clipping position, electronic equipment and storage medium |
-
2019
- 2019-08-29 CN CN201910809621.7A patent/CN110597438A/en active Pending
-
2020
- 2020-08-18 WO PCT/CN2020/109842 patent/WO2021036868A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090136201A1 (en) * | 2003-10-28 | 2009-05-28 | Canon Kabushiki Kaisha | Image processing apparatus |
CN102123201A (en) * | 2011-01-20 | 2011-07-13 | 深圳市五巨科技有限公司 | Ringtone shearing method and device of mobile terminal |
CN102833394A (en) * | 2011-06-17 | 2012-12-19 | 沈阳晨讯希姆通科技有限公司 | Mobile phone capable of generating ring of the mobile phone, and method for generating ring thereof |
CN105635418A (en) * | 2014-10-31 | 2016-06-01 | 东莞宇龙通信科技有限公司 | Method and device for cutting bell |
CN108847258A (en) * | 2018-06-10 | 2018-11-20 | 北京酷我科技有限公司 | A kind of implementation method intercepting Audio Controls |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021036868A1 (en) * | 2019-08-29 | 2021-03-04 | Oppo广东移动通信有限公司 | Audio cutting position determination method and apparatus, electronic device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2021036868A1 (en) | 2021-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200371656A1 (en) | Icon Control Method and Terminal | |
EP2752852B1 (en) | Mobile terminal and controlling method for video editing | |
US20180210755A1 (en) | Method and apparatus for switching tasks using a displayed task stack | |
US9122388B2 (en) | Method and apparatus for controlling touch screen using timeline bar, recording medium with program for the same recorded therein, and user terminal having the same | |
US10282022B2 (en) | Control method and control device for working mode of touch screen | |
US9081491B2 (en) | Controlling and editing media files with touch gestures over a media viewing area using a touch sensitive device | |
CN113923301A (en) | Apparatus, method and graphical user interface for capturing and recording media in multiple modes | |
US10282219B2 (en) | Consolidated orthogonal guide creation | |
CN105068727A (en) | Realization method and device for drawing tool | |
US20130232451A1 (en) | Electronic device and method for switching between applications | |
KR101586559B1 (en) | Information processing apparatus and information processing method | |
CN105183287A (en) | Display processing method and electronic device | |
US20180152622A1 (en) | Mobile terminal-based photographing method and mobile terminal | |
CN112486377B (en) | Text editing method and device and electronic equipment | |
US20170115849A1 (en) | Icon moving method and device | |
WO2022007544A1 (en) | Device control method and apparatus, and storage medium and electronic device | |
CN104881225A (en) | Control method and device for adjusting bar | |
CN105045481A (en) | Operation method and terminal | |
CN110597438A (en) | Method and device for determining audio clipping position, electronic equipment and storage medium | |
CN104077007A (en) | Information entry collation method and system | |
CN115878010B (en) | Operation interaction method, device, electronic equipment and computer readable storage medium | |
CN104317492A (en) | Wallpaper setting method | |
CN105183707A (en) | Content editing method and terminal | |
CN110647263B (en) | Mobile terminal desktop icon moving method, device, medium and equipment | |
KR101405822B1 (en) | Method of providing visual edit-assistance for touch-based editing applications, and computer-readable recording medidum for the same |
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 |