Audio editing method, device and device for audio editing
Through the linked editing of audio and text content, and the use of time stamp relationships, the existing audio editing process is complex and inefficient, and efficient and accurate audio editing is achieved.
Patent Information
- Application Number
- CN202010964002.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-14
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-09-14
AI Technical Summary
The existing audio editing process is complex and inefficient. Users need to repeatedly drag the audio progress bar to find the editing point, and it is difficult to maintain an accurate correspondence between audio and text after editing.
By obtaining the text content associated with the audio content, it responds to the user's editing operation on the text content, automatically performs the corresponding editing operation in the audio content, and uses the timestamp association relationship to realize the linked editing of audio and text.
It reduces the difficulty and time of audio editing, improves editing efficiency, and ensures the accuracy of the correspondence between edited audio and text.
Smart Images

Figure CN112102841B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an audio editing method, device and a device for audio editing. Background Art
[0002] At present, it is very common to use recordings to save the voice content that users need, and many applications and hardware products also provide services to transcribe voice into text. However, for a large amount of recording content, not all of it is needed by users. For example, for recorded course audio, users often only want to save the part they are interested in, and for some applications that support uploading audio content, users hope to edit the audio content like editing text content before uploading.
[0003] However, during the audio editing process, the user needs to repeatedly drag the audio progress bar and listen to the current progress content to accurately find the time point that needs to be edited, and complete the audio editing process through repeated editing and adjustment. In addition, in order to ensure that the edited audio and the transcribed text still maintain a corresponding relationship, the text corresponding to the audio needs to be edited separately, which not only makes the audio editing process more complicated and the editing efficiency lower, but also makes it difficult to ensure the corresponding accuracy of the edited audio and text. Summary of the invention
[0004] The embodiments of the present invention provide an audio editing method, an apparatus and a device for audio editing, which can realize the linked editing of audio and its corresponding text, and improve the efficiency and accuracy of audio editing.
[0005] In order to solve the above problem, an embodiment of the present invention discloses an audio editing method, which includes:
[0006] Acquire text content to be edited, where the text content is text content associated with the audio content;
[0007] In response to a first input of the text content, an editing operation corresponding to the first input is performed on the audio content and the text content according to the association relationship between the audio content and the text content.
[0008] Optionally, in response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content includes:
[0009] In response to a first input of the text content, obtaining a first text selected in the text content by the first input;
[0010] Determining, in the audio content, a first audio segment corresponding to the first text according to the association relationship between the audio content and the text content;
[0011] An editing operation corresponding to the first input is performed on the first text and the first audio segment respectively.
[0012] Optionally, the association relationship includes a timestamp association relationship.
[0013] Optionally, the association relationship is a timestamp association relationship, and the response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, includes:
[0014] In response to a first input to the text content, displaying a cursor position in the text content;
[0015] Determining a time point corresponding to the progress of the cursor position in the audio content according to a timestamp association relationship between the audio content and the text content;
[0016] In response to an editing operation corresponding to the first input, a second text is inserted at the cursor position, and a second audio segment corresponding to the second text is inserted at the time point.
[0017] Optionally, after inserting the second text at the cursor position and inserting the second audio segment corresponding to the second text at the time point, the method further includes:
[0018] In response to a second input of the second audio segment, a playback parameter of the second audio segment is set, wherein the playback parameter includes at least one of a playback sound and a playback speed.
[0019] Optionally, before obtaining the text content to be edited, the method further includes:
[0020] Comparatively displaying the audio content and text content corresponding to the audio content;
[0021] In response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, includes:
[0022] In response to a first input of the text content, an editing operation corresponding to the first input is synchronously performed on the audio content and the text content according to the association relationship between the audio content and the text content.
[0023] Optionally, the comparing and displaying the audio content and the text content corresponding to the audio content includes:
[0024] The current playing progress of the audio content and the current display progress of the text content are displayed in comparison, wherein the pause content in the audio content is displayed as a preset space character in the text content.
[0025] Optionally, after comparing and displaying the current playback progress of the audio content and the current display progress of the text content, the method further includes:
[0026] In response to a third input for adjusting the play progress or the display progress, the play progress of the audio content and the display progress of the text content are synchronously updated.
[0027] Optionally, before obtaining the text content to be edited, the method further includes:
[0028] Displaying text content corresponding to the audio content;
[0029] In response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, includes:
[0030] In response to a first input on the text content, performing an editing operation corresponding to the first input on the text content;
[0031] According to the association relationship between the audio content and the text content, an editing operation corresponding to the first input is performed on the audio content.
[0032] Optionally, the editing operation includes one or more of the following operations: cutting, copying, pasting, inserting, deleting, modifying, translating, voice changing, and hiding.
[0033] On the other hand, an embodiment of the present invention discloses an audio editing device, the device comprising:
[0034] An acquisition module, used for acquiring text content to be edited, wherein the text content is text content associated with the audio content;
[0035] The editing module is used to respond to a first input of the text content and perform an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content.
[0036] Optionally, the editing module includes:
[0037] A text acquisition submodule, configured to respond to a first input of the text content and acquire a first text selected by the first input in the text content;
[0038] an audio determination submodule, configured to determine, in the audio content, a first audio segment corresponding to the first text according to an association relationship between the audio content and the text content;
[0039] The editing submodule is used to perform editing operations corresponding to the first input on the first text and the first audio segment respectively.
[0040] Optionally, the association relationship includes a timestamp association relationship.
[0041] Optionally, the association relationship is a timestamp association relationship, and the editing module includes:
[0042] a cursor display submodule, for displaying a cursor position in the text content in response to a first input to the text content;
[0043] A time point determination submodule, configured to determine a time point corresponding to the progress of the cursor position in the audio content according to a timestamp association relationship between the audio content and the text content;
[0044] The synchronous insertion submodule is used to respond to the editing operation corresponding to the first input, insert the second text at the cursor position, and insert the second audio segment corresponding to the second text at the time point.
[0045] Optionally, the device further comprises:
[0046] The parameter setting module is used to set the playback parameters of the second audio segment in response to the second input of the second audio segment, and the playback parameters include at least one of the playback sound and the playback speed.
[0047] Optionally, the device further comprises:
[0048] A comparison display module, used for comparing and displaying the audio content and the text content corresponding to the audio content;
[0049] The editing module is specifically configured to respond to a first input to the text content and synchronously perform an editing operation corresponding to the first input on the audio content and the text content according to an association relationship between the audio content and the text content.
[0050] Optionally, the comparison display module is specifically used to compare and display the current playback progress of the audio content and the current display progress of the text content, wherein the pause content in the audio content is displayed as preset space characters in the text content.
[0051] Optionally, the device further comprises:
[0052] The progress adjustment module is used to respond to a third input for adjusting the play progress or the display progress, and synchronously update the play progress of the audio content and the display progress of the text content.
[0053] Optionally, the device further comprises:
[0054] A text display module, used to display text content corresponding to the audio content;
[0055] The editing module comprises:
[0056] A first editing submodule, configured to respond to a first input on the text content and perform an editing operation corresponding to the first input on the text content;
[0057] The second editing submodule is used to perform an editing operation corresponding to the first input on the audio content according to the association relationship between the audio content and the text content.
[0058] Optionally, the editing operation includes one or more of the following operations: cutting, copying, pasting, inserting, deleting, modifying, translating, voice changing, and hiding.
[0059] In another aspect, an embodiment of the present invention discloses a device for audio editing, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0060] Acquire text content to be edited, where the text content is text content associated with the audio content;
[0061] In response to a first input of the text content, an editing operation corresponding to the first input is performed on the audio content and the text content according to the association relationship between the audio content and the text content.
[0062] Optionally, in response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content includes:
[0063] In response to a first input of the text content, obtaining a first text selected in the text content by the first input;
[0064] Determining, in the audio content, a first audio segment corresponding to the first text according to the association relationship between the audio content and the text content;
[0065] An editing operation corresponding to the first input is performed on the first text and the first audio segment respectively.
[0066] Optionally, the association relationship includes a timestamp association relationship.
[0067] Optionally, the association relationship is a timestamp association relationship, and the response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, includes:
[0068] In response to a first input to the text content, displaying a cursor position in the text content;
[0069] Determining a time point corresponding to the progress of the cursor position in the audio content according to a timestamp association relationship between the audio content and the text content;
[0070] In response to an editing operation corresponding to the first input, a second text is inserted at the cursor position, and a second audio segment corresponding to the second text is inserted at the time point.
[0071] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0072] In response to a second input of the second audio segment, a playback parameter of the second audio segment is set, wherein the playback parameter includes at least one of a playback sound and a playback speed.
[0073] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: comparing and displaying the audio content and text content corresponding to the audio content;
[0074] In response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, includes:
[0075] In response to a first input of the text content, an editing operation corresponding to the first input is synchronously performed on the audio content and the text content according to the association relationship between the audio content and the text content.
[0076] Optionally, the comparing and displaying the audio content and the text content corresponding to the audio content includes:
[0077] The current playing progress of the audio content and the current display progress of the text content are displayed in comparison, wherein the pause content in the audio content is displayed as a preset space character in the text content.
[0078] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0079] In response to a third input for adjusting the play progress or the display progress, the play progress of the audio content and the display progress of the text content are synchronously updated.
[0080] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0081] Displaying text content corresponding to the audio content;
[0082] In response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, includes:
[0083] In response to a first input on the text content, performing an editing operation corresponding to the first input on the text content;
[0084] According to the association relationship between the audio content and the text content, an editing operation corresponding to the first input is performed on the audio content.
[0085] Optionally, the editing operation includes one or more of the following operations: cutting, copying, pasting, inserting, deleting, modifying, translating, voice changing, and hiding.
[0086] On the other hand, an embodiment of the present invention discloses a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables a device to perform one or more of the audio editing methods described above.
[0087] The embodiments of the present invention include the following advantages:
[0088] After acquiring the text content to be edited, the embodiment of the present invention can respond to the first input of the text content, and according to the association relationship between the audio content and the text content, perform the editing operation corresponding to the first input on the audio content and the text content. Wherein, the text content to be edited is the text content associated with the audio content. The embodiment of the present invention performs the corresponding editing operation on the associated audio content according to the user's editing operation on the text content. Since the position to be edited can be intuitively located when editing the text, the user does not need to repeatedly drag the audio progress bar and listen to the current progress content to accurately find the time point to be edited, which can reduce the difficulty of audio editing and improve editing efficiency. In addition, according to the association relationship between the audio content and the text content, the embodiment of the present invention can realize the linkage editing of the text content and the associated audio content, which can ensure that the edited audio and text still maintain a corresponding relationship, and thus ensure the corresponding accuracy of the edited audio and text. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0090] Figure 1 is a flowchart of steps of an audio editing method embodiment of the present invention;
[0091] Figure 2 is a structural block diagram of an embodiment of an audio editing device of the present invention;
[0092] Figure 3 is a block diagram of an apparatus 800 for audio editing of the present invention;
[0093] Figure 4 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION
[0094] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0095] Method Embodiment
[0096] Reference Figure 1, shows a flowchart of an audio editing method embodiment of the present invention, which may specifically include the following steps:
[0097] Step 101: obtaining text content to be edited, wherein the text content is text content associated with the audio content;
[0098] Step 102: In response to a first input of the text content, an editing operation corresponding to the first input is performed on the audio content and the text content according to an association relationship between the audio content and the text content.
[0099] The method provided by the embodiment of the present invention can be applied to electronic devices, including but not limited to: servers, smart phones, voice recorders, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.
[0100] In an embodiment of the present invention, the audio content may be a continuous speech, such as a sentence, a paragraph, etc. The embodiment of the present invention does not limit the source of the audio content. The audio content may come from task reminders, class notes, journalist interviews, meeting minutes, literary creation, electronic diaries, songs, audio stories, etc. In one example, the audio content may be a voice clip collected in real time by the recording function of the electronic device; or, the audio content may be a recorded voice clip played back by the electronic device, or, the audio content may be an audio file downloaded from the Internet, such as a song, an audio story, etc.; or, the audio content may also be a voice message input, sent or received by a user through an instant messaging application, etc.
[0101] The text content to be edited is text content associated with the audio content, for example, it can be a comparison text that matches the audio content, and the comparison text can be text information obtained by performing voice recognition on the audio content. During the process of playing the audio content through the electronic device, the text content corresponding to the audio content can be displayed for comparison and viewing by the user.
[0102] Based on the association between the audio content and the text content, the embodiment of the present invention can implement the editing operation of the audio content by editing the text content. The first input can be used to trigger the text content to be edited to enter the editing state, and the user's editing operation on the text content is received in the editing state. The embodiment of the present invention performs the corresponding editing operation on the audio content according to the user's editing operation on the text content, so that the edited text content and the audio content remain consistent.
[0103] It is understood that the embodiment of the present invention does not limit the operation type of the first input. The first input may be a preset operation or operation sequence, for example, the first input may include a click operation (including a single click, a double click, and a triple click), a long press operation, a slide operation, a drag operation, an operation sequence of selecting, right clicking, and then clicking, etc.
[0104] In an optional embodiment of the present invention, before obtaining the text content to be edited in step 101, the method may further include:
[0105] Displaying text content corresponding to the audio content;
[0106] In step 102, in response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content includes:
[0107] In response to a first input on the text content, performing an editing operation corresponding to the first input on the text content;
[0108] According to the association relationship between the audio content and the text content, an editing operation corresponding to the first input is performed on the audio content.
[0109] After performing the editing operation corresponding to the first input on the text content, in order to ensure that the text content and the audio content are always consistent, the embodiment of the present invention also performs the editing operation corresponding to the first input on the audio content according to the association relationship between the audio content and the text content.
[0110] After the background performs the editing operation corresponding to the first input on the text content, it can automatically trigger the execution of the editing operation corresponding to the first input on the associated audio content.
[0111] Optionally, after performing the editing operation corresponding to the first input on the text content, the background can also output an inquiry message to prompt the user whether the text content has associated audio content and whether the corresponding editing operation needs to be performed on the audio content. If the user receives a response message of consent to the inquiry message, the background directly performs the editing operation corresponding to the first input on the audio content.
[0112] Furthermore, when the audio content is played next time, a prompt message indicating that the audio content has been modified based on the text content may be output.
[0113] It should be noted that, in a specific implementation, when a first input to the text content is received, the editing operation corresponding to the first input can be performed on the text content first, and then the corresponding editing operation can be performed on the audio content according to the association relationship between the audio content and the text content. Alternatively, the editing operation corresponding to the first input can also be performed on the text content and the audio content synchronously. The embodiment of the present invention does not limit this. For ease of description, the embodiments of the present invention are described by taking the synchronous execution of editing operations on associated text content and audio content as an example.
[0114] In an optional embodiment of the present invention, before obtaining the text content to be edited in step 101, the method may further include:
[0115] Comparatively displaying the audio content and text content corresponding to the audio content;
[0116] In step 102, in response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content includes:
[0117] In response to a first input of the text content, an editing operation corresponding to the first input is synchronously performed on the audio content and the text content according to the association relationship between the audio content and the text content.
[0118] Optionally, during the playing of audio content, text content corresponding to the audio content may be displayed in comparison, and the first input may be used to trigger the currently playing audio content and the displayed text content to enter an editing state.
[0119] Among them, in the editing state, the text content and the audio content are both in an editable state, and the audio content is paused. Optionally, the embodiment of the present invention can edit the existing text content currently displayed, and in response to the editing operation on the existing text content, the corresponding editing operation is synchronously performed on the audio content; or, the embodiment of the present invention can also insert new text into the existing text content, and in response to the editing operation of inserting new text into the existing text content, a new audio segment corresponding to the new text is synchronously inserted at the corresponding position in the audio content.
[0120] In an optional embodiment of the present invention, the editing operation may include one or more of the following operations: cutting, copying, pasting, inserting, deleting, modifying, translating, voice changing, and hiding.
[0121] Among them, operations such as cutting, copying, pasting, deleting, modifying, translating, changing voice, hiding, etc. are editing operations on the existing text content currently displayed. For example, the selected text in the text content is cut, copied, pasted, deleted, modified, translated, changed voice, hidden, etc., and at the same time, the audio segment corresponding to the selected text in the audio content is cut, copied, pasted, deleted, modified, translated, changed voice, hidden, etc. The insertion operation refers to inserting new text into the existing text content, and synchronously inserting a new audio segment corresponding to the new text at the corresponding position in the audio content.
[0122] In one example, in response to the first input, the audio content is paused, and the audio content and the text content enter an editing state. In the editing state, if a user deletes a sentence in the text content, the sentence is deleted in the text content, and the audio segment corresponding to the sentence is deleted in the audio content. It can be understood that the editing operations listed above are only examples of applications of the embodiments of the present invention, and the embodiments of the present invention do not limit the specific types of editing operations.
[0123] The embodiment of the present invention can realize synchronous editing of audio by editing text. When editing text, the position that needs to be edited can be intuitively located, and the user does not need to repeatedly drag the progress bar of the audio and listen to the content of the current progress to accurately find the time point that needs to be edited. In addition, according to the association relationship between the audio content and the text content, the embodiment of the present invention synchronously performs the editing operation corresponding to the first input on the audio content and the text content, which can ensure that the edited audio and text still maintain a corresponding relationship, and there is no need to separately edit the text corresponding to the audio. It can not only reduce the difficulty of audio editing and improve editing efficiency, but also ensure the corresponding accuracy of the edited audio and text.
[0124] In an optional embodiment of the present invention, in response to the first input of the text content, step 102 performs an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, including:
[0125] Step S11, in response to a first input of the text content, obtaining a first text selected in the text content by the first input;
[0126] Step S12: determining a first audio segment corresponding to the first text in the audio content according to the association relationship between the audio content and the text content;
[0127] Step S13: performing editing operations corresponding to the first input on the first text and the first audio segment respectively.
[0128] Steps S11 to S13 are specific processes for editing the currently displayed existing text content and synchronously performing corresponding editing operations on the audio content. First, in response to a first input of the text content, a first text selected by the first input in the text content is obtained. The selected first text may be a paragraph, a sentence, a phrase, a word, etc.
[0129] According to the association relationship between the audio content and the text content, a first audio segment corresponding to the first text is determined in the audio content. Optionally, in the embodiment of the present invention, the first text and the first audio segment can be highlighted in the playback interface of the audio content so that the user can check the correspondence between the first text to be edited and the first audio segment.
[0130] In the embodiment of the present invention, the association relationship may include a timestamp association relationship. Of course, the embodiment of the present invention does not limit the specific type of the association relationship between the audio content and the text content.
[0131] Furthermore, the embodiment of the present invention can establish a correspondence between the total duration of the audio content and the total length of the text content. In this way, according to the position of the first text in the text content and the correspondence between the total duration of the audio content and the total length of the text content, the time point in the audio content at which the first text corresponds can be determined, and according to the time point and the length of the first text, the first audio segment corresponding to the first text can be determined in the audio content.
[0132] Assuming that the total duration of the audio content is T (seconds) and the total length of the text content is L (bytes), once the position p of the first text selected in the text content is determined, the time point t corresponding to the position in the audio content can be determined. The specific calculation process is as follows:
[0133] t=(p×T) / L(1)
[0134] It should be noted that the position p of the first text selected in the text content may be the position of the first word in the first text.
[0135] In an optional embodiment of the present invention, the step S13 of performing the editing operation corresponding to the first input on the first text and the first audio segment respectively includes:
[0136] Step S131, displaying an edit menu, wherein the edit menu includes menu items;
[0137] Step S132: In response to a triggering operation on a target menu item in the editing menu, an editing operation corresponding to the target menu item is performed on the first text and the first audio segment respectively.
[0138] In one example, in response to a first input, a first text selected by the first input in the text content is obtained, and based on the association relationship between the audio content and the text content, a first audio segment corresponding to the first text is determined in the audio content.
[0139] After the first text is selected, an edit menu may be displayed. Optionally, the edit menu may be automatically popped up after receiving an operation of selecting the first text, or, after receiving a preset operation (such as a right-click operation, etc.) for triggering the display of the edit menu, the edit menu may be popped up in response to the preset operation. The edit menu includes menu items, each of which corresponds to an edit operation. It is understood that the embodiment of the present invention does not limit the specific form of the edit menu. For example, the edit menu may be in the form of a floating window, a bubble bar, etc.
[0140] In response to a trigger operation on a target menu item in the editing menu, the editing operation corresponding to the target menu item is performed on the first text and the first audio segment, respectively. For example, after the first text is selected, the editing menu is displayed, and the editing menu includes the following menu items: "Copy", "Paste", "Translate", "Hide", "Delete", etc. Assuming that a trigger operation of "Delete" is received for the target menu item in the editing menu, the editing operation corresponding to the target menu item is performed on the first text and the first audio segment, respectively. Specifically, the first text is deleted in the text content, and the first audio segment is deleted in the audio content.
[0141] In another example, assuming that a trigger operation is received for a target menu item in the edit menu being "Translate", the first text is translated into a translated text in the target language, and the translated text is displayed at a relevant position of the first text. The relevant position may be after the first text, for example, the translated text is displayed after the first text is displayed. After receiving a trigger operation for a target menu item in the edit menu being "Translate", a translation operation is synchronously performed on the first audio segment corresponding to the first text to obtain a translated audio segment corresponding to the first audio segment, and the translated audio segment is inserted at a relevant position of the first audio segment, such as after the first audio segment. Among them, the translated audio segment can be obtained by performing speech synthesis on the translated text.
[0142] Optionally, the target language may be preset, and after receiving a trigger operation for the target menu item "Translate" in the edit menu, a menu for setting the translation language may be displayed to set the target language in real time.
[0143] In an optional embodiment of the present invention, the association relationship is a timestamp association relationship, and the step 102 responds to the first input of the text content and performs an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, including:
[0144] Step S21, in response to a first input of the text content, displaying a cursor position in the text content;
[0145] Step S22: determining a time point corresponding to the progress of the cursor position in the audio content according to the timestamp association relationship between the audio content and the text content;
[0146] Step S23: In response to the editing operation corresponding to the first input, insert a second text at the cursor position, and insert a second audio segment corresponding to the second text at the time point.
[0147] Steps S21 to S23 are specific processes of inserting new text into existing text content, and synchronously inserting a new audio segment corresponding to the new text into a corresponding position in the audio content.
[0148] The second text refers to a new text inserted into the existing text content, and the second audio segment is an audio segment corresponding to the second text, that is, a new audio segment inserted into the existing audio content. The second audio segment can be obtained by performing speech synthesis on the second text. It should be noted that the inserted new text can be text input in real time, or can be text copied or cut, etc.
[0149] In one example, in response to a first input (such as a click operation) to the text content, a cursor position is displayed in the text content, and the position of the click operation is the cursor position. In response to a preset operation (such as a right-click operation) for triggering the display of an edit menu, an edit menu pops up. Assuming that a trigger operation is received for a target menu item in the edit menu as "Insert", a second text input by the user in real time is inserted at the cursor position.
[0150] Optionally, after determining the time point corresponding to the progress of the cursor position in the audio content, the method may further include: displaying the time point in a playback progress bar of the audio content.
[0151] Optionally, the embodiment of the present invention can display the cursor position and the time point in the playback interface of the audio content in comparison, so that the user can compare and check the correspondence between the second text to be inserted and the second audio segment to be inserted. Further, in the case of receiving a move operation on the cursor position, in response to the move operation, the cursor position in the text content is moved, and at the same time, according to the change of the cursor position, the time point of the audio content corresponding to the cursor position displayed in the playback interface is updated.
[0152] In another example, in response to a first input (such as a selection operation), the first text selected by the first input in the text content is obtained. In response to a preset operation (such as a right-click operation) for triggering the display of an edit menu, an edit menu pops up. Assuming that a trigger operation of "copy" is received for the target menu item in the edit menu, the first text is copied to the clipboard, and according to the association relationship between the audio content and the text content, the first audio segment corresponding to the first text is determined in the audio content, and the first audio segment is copied to the clipboard. Next, in response to the operation of moving the cursor, the cursor position is moved in the text content, and the cursor position is displayed in the text content. In response to a preset operation (such as a right-click operation) for triggering the display of an edit menu, an edit menu pops up. Assuming that a trigger operation of "paste" is received for the target menu item in the edit menu, a second text (i.e., the first text in the clipboard) is inserted at the cursor position, and according to the association relationship between the audio content and the text content, a time point corresponding to the progress of the cursor position is determined in the audio content, and the second audio segment corresponding to the second text (i.e., the first audio segment in the clipboard) is inserted at the time point.
[0153] Optionally, the editing operations corresponding to the menu items in the edit menu may be provided with shortcut keys. For example, the shortcut keys for the copy operation are to press and hold the "Ctrl" key and the "C" key at the same time. The shortcut keys for the paste operation are to press and hold the "Ctrl" key and the "V" key at the same time, etc. For example, when receiving an operation in which the user presses and holds the "Ctrl" key and the "C" key at the same time, it can be considered that a trigger operation of the user for the target menu item in the edit menu to be "Copy" is received.
[0154] It is understood that the above-mentioned triggering of the editing operation on the text content and the audio content based on the preset editing menu is only an application example of the present invention, and the embodiment of the present invention does not limit the specific triggering method. For example, a voice instruction for triggering the editing operation can be received through a voice assistant, or a preset gesture for triggering the editing operation can be received through the touch screen of the electronic device, or it can be automatically triggered through the background, etc.
[0155] In an optional embodiment of the present invention, after inserting the second text at the cursor position in step S23 and inserting the second audio segment corresponding to the second text at the time point, the method may further include:
[0156] In response to a second input of the second audio segment, a playback parameter of the second audio segment is set, wherein the playback parameter includes at least one of a playback sound and a playback speed.
[0157] After inserting the second audio segment into the audio content, the playback parameters of the second audio segment may be set, such as the playback sound, playback speed, etc. The playback sound may be a preset sound provided by the system, or may be the original sound of the audio content.
[0158] Optionally, after inserting the second audio segment into the audio content, a second input for setting the playback parameters may be received, and in response to the second input, a parameter setting menu may be displayed. The parameter setting menu may include setting items, and different parameter setting interfaces may be entered by triggering different setting items. For example, in the parameter setting interface for setting the playback sound, different playback sounds may be selected. In the parameter setting interface for setting the playback speed, different playback speeds may be set, etc.
[0159] Optionally, in addition to setting playback parameters for the inserted second audio segment, the embodiment of the present invention can also set playback parameters for any original audio segment in the audio content. Further, to set playback parameters for any audio segment in the audio content, the audio segment for which playback parameters need to be set can be selected by selecting text content or by selecting audio content.
[0160] In one example, in response to a selection operation on the text content, the text to be set selected in the text content is obtained, and according to the association relationship between the audio content and the text content, the audio segment to be set corresponding to the text to be set is determined in the audio content. In response to a preset operation for triggering the display of a parameter setting menu, a parameter setting menu is popped up, and the playback parameters of the audio segment to be set are set through the parameter setting menu.
[0161] The text to be set may be existing text in the text content or new text inserted into the text content. The inserted new text may be new text input in real time, new text pasted, inserted translated text, etc.
[0162] In an optional embodiment of the present invention, the comparison and display of text content corresponding to the audio content includes:
[0163] The current playing progress of the audio content and the current display progress of the text content are displayed in comparison, wherein the pause content in the audio content is displayed as a preset space character in the text content.
[0164] Specifically, in the process of playing the audio content by the electronic device, according to the association between the audio content and the text content, the current playing progress of the audio content and the current display progress of the text content can be displayed in comparison for the user to check.
[0165] In actual applications, there are usually pauses in audio content. In order to make the playback progress of the audio content correspond to the display progress of the text content, the embodiment of the present invention displays a preset space character in the text content when the pause content in the audio content is played.
[0166] Among them, the vacant characters can be preset symbols, such as spaces, ellipsis, etc. By displaying the vacant characters in the text content, the user can be prompted that the corresponding pause content in the audio content is. Furthermore, by displaying the vacant characters in the text content, the user can perform editing operations on the vacant characters, and then perform corresponding editing operations on the pause content in the audio content. For example, by deleting the vacant characters in the text content, the pause content in the audio content can be deleted. For another example, by modifying the vacant characters in the text content, the pause content in the audio content can be modified.
[0167] In an optional embodiment of the present invention, after comparing and displaying the current playback progress of the audio content and the current display progress of the text content, the method may further include:
[0168] In response to a third input for adjusting the play progress or the display progress, the play progress of the audio content and the display progress of the text content are synchronously updated.
[0169] In the process of playing audio content, the embodiment of the present invention compares and displays the current playing progress of the audio content and the current display progress of the text content. There is a correlation between the current playing progress of the audio content and the current display progress of the text content, and adjusting one of them can achieve synchronous update of the two.
[0170] During the process of playing the audio content, a third input for adjusting the current playing progress of the audio content and the current display progress of the text content may be received. It is to be understood that the embodiment of the present invention does not limit the operation type of the third input. For example, the third input may be an operation such as dragging or clicking on the progress bar of the audio content to adjust the current playing progress of the audio content; or the third input may be an operation such as dragging or clicking on the text content to adjust the current display progress of the text content.
[0171] After receiving the third input, the embodiment of the present invention can obtain the adjustment progress of the third input. For example, the current playback progress after dragging the progress bar of the audio content, or the current display progress after dragging the text content. In addition, the embodiment of the present invention can also establish a corresponding relationship between the total duration of the audio content and the total length of the text content, and then obtain the association relationship between the audio content and the text content. In this way, when the third input for adjusting the playback progress or the display progress is received, the playback progress of the audio content and the display progress of the text content can be synchronously updated according to the adjusted progress and the association relationship, so as to avoid the situation where the currently playing audio content and the currently displayed text do not correspond.
[0172] In an optional embodiment of the present invention, after performing the editing operation corresponding to the first input on the audio content and the text content, the method may further include: exporting the edited audio content and the edited text content.
[0173] The edited audio content and the edited text content refer to the original audio content and the original text content that have been modified. For example, after deleting the first audio segment in the audio content and deleting the first text in the text content, the edited audio content and the edited text content are exported, and the first audio segment has been deleted in the exported edited audio content, and the first text has been deleted in the exported edited text content.
[0174] Optionally, after the embodiment of the present invention performs the editing operation corresponding to the first input on the audio content and the text content, the source files corresponding to the edited audio content and the edited text content may be saved.
[0175] The source file may store the original unmodified audio content and text content, as well as the edited state. Thus, the integrity of the audio content and the text content can be maintained, and when the source file is opened next time, the unmodified original content of the audio content and the text content, as well as the edited state, can be displayed, so that the user can continue to perform the editing operation based on the current edited state.
[0176] In summary, after acquiring the text content to be edited, the embodiment of the present invention can respond to the first input of the text content, and according to the association relationship between the audio content and the text content, perform the editing operation corresponding to the first input on the audio content and the text content. Wherein, the text content to be edited is the text content associated with the audio content. The embodiment of the present invention performs the corresponding editing operation on the associated audio content according to the user's editing operation on the text content. Since the position to be edited can be intuitively located when editing the text, the user does not need to repeatedly drag the audio progress bar and listen to the current progress content to accurately find the time point to be edited, which can reduce the difficulty of audio editing and improve editing efficiency. In addition, according to the association relationship between the audio content and the text content, the embodiment of the present invention can realize the linkage editing of the text content and the associated audio content, which can ensure that the edited audio and text still maintain a corresponding relationship, and thus ensure the corresponding accuracy of the edited audio and text.
[0177] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0178] Device Embodiment
[0179] Reference Figure 2 , shows a structural block diagram of an audio editing device embodiment of the present invention, the device may include:
[0180] An acquisition module 201 is used to acquire text content to be edited, wherein the text content is text content associated with the audio content;
[0181] The editing module 202 is used to respond to a first input of the text content and perform an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content.
[0182] Optionally, the editing module 202 includes:
[0183] A text acquisition submodule, configured to respond to a first input of the text content and acquire a first text selected by the first input in the text content;
[0184] an audio determination submodule, configured to determine, in the audio content, a first audio segment corresponding to the first text according to an association relationship between the audio content and the text content;
[0185] The editing submodule is used to perform editing operations corresponding to the first input on the first text and the first audio segment respectively.
[0186] Optionally, the editing submodule includes:
[0187] A menu display unit, used for displaying an edit menu, wherein the edit menu includes menu items;
[0188] The editing unit is used to respond to a triggering operation on a target menu item in the editing menu and execute an editing operation corresponding to the target menu item on the first text and the first audio segment respectively.
[0189] Optionally, the association relationship includes a timestamp association relationship.
[0190] Optionally, the association relationship is a timestamp association relationship, and the editing module includes:
[0191] a cursor display submodule, for displaying a cursor position in the text content in response to a first input to the text content;
[0192] A time point determination submodule, configured to determine a time point corresponding to the progress of the cursor position in the audio content according to a timestamp association relationship between the audio content and the text content;
[0193] The synchronous insertion submodule is used to respond to the editing operation corresponding to the first input, insert the second text at the cursor position, and insert the second audio segment corresponding to the second text at the time point.
[0194] Optionally, the device further comprises:
[0195] The parameter setting module is used to set the playback parameters of the second audio segment in response to the second input of the second audio segment, and the playback parameters include at least one of the playback sound and the playback speed.
[0196] Optionally, the device further comprises:
[0197] A comparison display module, used for comparing and displaying the audio content and the text content corresponding to the audio content;
[0198] The editing module is specifically configured to respond to a first input to the text content and synchronously perform an editing operation corresponding to the first input on the audio content and the text content according to an association relationship between the audio content and the text content.
[0199] Optionally, the comparison display module is specifically used to compare and display the current playback progress of the audio content and the current display progress of the text content, wherein the pause content in the audio content is displayed as preset space characters in the text content.
[0200] Optionally, the device further comprises:
[0201] The progress adjustment module is used to respond to a third input for adjusting the play progress or the display progress, and synchronously update the play progress of the audio content and the display progress of the text content.
[0202] Optionally, the device further comprises:
[0203] A text display module, used to display text content corresponding to the audio content;
[0204] The editing module comprises:
[0205] A first editing submodule, configured to respond to a first input on the text content and perform an editing operation corresponding to the first input on the text content;
[0206] The second editing submodule is used to perform an editing operation corresponding to the first input on the audio content according to the association relationship between the audio content and the text content.
[0207] Optionally, the editing operation includes one or more of the following operations: cutting, copying, pasting, inserting, deleting, modifying, translating, voice changing, and hiding.
[0208] According to the editing operation of the text content by the user, the embodiment of the present invention also performs the editing operation on the associated audio content. Since the position to be edited can be intuitively located when editing the text, the user does not need to repeatedly drag the progress bar of the audio and listen to the content of the current progress to accurately find the time point to be edited, which can reduce the difficulty of audio editing and improve editing efficiency. In addition, according to the association relationship between the audio content and the text content, the embodiment of the present invention can realize the linkage editing of the text content and the associated audio content, which can ensure that the edited audio and text still maintain a corresponding relationship, and thus ensure the corresponding accuracy of the edited audio and text.
[0209] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0210] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0211] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0212] An embodiment of the present invention provides a device for audio editing, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: obtaining text content to be edited, wherein the text content is text content associated with audio content; in response to a first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content.
[0213] Figure 3 8 is a block diagram of an apparatus 800 for audio editing according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0214] Reference Figure 3 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0215] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0216] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0217] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0218] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0219] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice information processing mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0220] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0221] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, the sensor assembly 814 can also detect the position change of the audio editing device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800 and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0222] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency information processing (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0223] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0224] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0225] Figure 4 1 is a schematic diagram of the structure of the server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1922 can be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.
[0226] The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and / or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0227] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform Figure 1 The audio editing method shown.
[0228] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to execute an audio editing method, the method comprising: obtaining text content to be edited, the text content being text content associated with audio content; in response to a first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content.
[0229] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed by the present invention. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present invention is indicated by the following claims.
[0230] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
[0231] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
[0232] The above is a detailed introduction to an audio editing method, an audio editing device and a device for audio editing provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. An audio editing method, characterized in that: The method comprises: Acquire text content to be edited, where the text content is text content associated with the audio content; In response to a first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to an association relationship between the audio content and the text content; In response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, includes: In response to a first input of the text content, obtaining a first text selected in the text content by the first input; According to the association relationship between the audio content and the text content, a first audio segment corresponding to the first text is determined in the audio content; the first audio segment is determined according to a time point in the audio content corresponding to the first text and a length of the first text; the time point is determined according to a position of the first text in the text content and a correspondence between a total duration of the audio content and a total length of the text content; After receiving a preset operation for triggering display of an editing menu, in response to the preset operation, an editing menu pops up, the editing menu including menu items, and the editing operations corresponding to the menu items in the editing menu are set with shortcut keys; in response to the triggering operation of the shortcut key of the target menu item in the editing menu, the editing operation corresponding to the first input is performed on the first text, and an inquiry message is output; the inquiry message is used to prompt the user that the first text is associated with the first audio segment, and to inquire whether the corresponding editing operation needs to be performed on the first audio segment; after receiving the user's consent response message to the inquiry message, the editing operation corresponding to the first input is performed on the first audio segment.
2. The method according to claim 1, characterized in that: The association relationship includes a timestamp association relationship.
3. The method according to claim 2, characterized in that The association relationship is a timestamp association relationship, and the response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, includes: In response to a first input to the text content, displaying a cursor position in the text content; Determining a time point corresponding to the progress of the cursor position in the audio content according to a timestamp association relationship between the audio content and the text content; In response to an editing operation corresponding to the first input, a second text is inserted at the cursor position, and a second audio segment corresponding to the second text is inserted at the time point.
4. The method according to claim 3, characterized in that After inserting the second text at the cursor position and inserting the second audio segment corresponding to the second text at the time point, the method further includes: In response to a second input of the second audio segment, a playback parameter of the second audio segment is set, wherein the playback parameter includes at least one of a playback sound and a playback speed.
5. The method according to claim 1, characterized in that Before obtaining the text content to be edited, the method further includes: Display the text content corresponding to the audio content.
6. The method according to claim 1, characterized in that The editing operation includes one or more of the following operations: cutting, copying, pasting, inserting, deleting, modifying, translating, changing voice, and hiding.
7. An audio editing device, characterized in that: The device comprises: An acquisition module, used for acquiring text content to be edited, wherein the text content is text content associated with the audio content; an editing module, configured to respond to a first input of the text content and, according to an association relationship between the audio content and the text content, perform an editing operation corresponding to the first input on the audio content and the text content; The editing module comprises: A text acquisition submodule, configured to respond to a first input of the text content and acquire a first text selected by the first input in the text content; an audio determination submodule, configured to determine, in the audio content, a first audio segment corresponding to the first text according to an association relationship between the audio content and the text content; the first audio segment is determined according to a time point in the audio content corresponding to the first text and a length of the first text; the time point is determined according to a position of the first text in the text content and a correspondence relationship between a total duration of the audio content and a total length of the text content; An editing submodule is used to, after receiving a preset operation for triggering display of an editing menu, pop up an editing menu in response to the preset operation, wherein the editing menu includes menu items, and the editing operations corresponding to the menu items in the editing menu are set with shortcut keys; in response to a triggering operation of the shortcut key of a target menu item in the editing menu, perform the editing operation corresponding to the first input on the first text, and output an inquiry message; the inquiry message is used to prompt a user that the first text is associated with the first audio segment, and to inquire whether a corresponding editing operation needs to be performed on the first audio segment; after receiving a user's consent response message to the inquiry message, perform the editing operation corresponding to the first input on the first audio segment.
8. The device according to claim 7, characterized in that The association relationship includes a timestamp association relationship.
9. The device according to claim 8, characterized in that The association relationship is a timestamp association relationship, and the editing module includes: a cursor display submodule, for displaying a cursor position in the text content in response to a first input to the text content; A time point determination submodule, configured to determine a time point corresponding to the progress of the cursor position in the audio content according to a timestamp association relationship between the audio content and the text content; The synchronous insertion submodule is used to respond to the editing operation corresponding to the first input, insert the second text at the cursor position, and insert the second audio segment corresponding to the second text at the time point.
10. The device according to claim 9, characterized in that The device also includes: The parameter setting module is used to set the playback parameters of the second audio segment in response to the second input of the second audio segment, and the playback parameters include at least one of the playback sound and the playback speed.
11. The device according to claim 7, characterized in that The device also includes: The text display module is used to display the text content corresponding to the audio content.
12. The device according to claim 7, characterized in that The editing operation includes one or more of the following operations: cutting, copying, pasting, inserting, deleting, modifying, translating, changing voice, and hiding.
13. A device for audio editing, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations: Acquire text content to be edited, where the text content is text content associated with the audio content; In response to a first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to an association relationship between the audio content and the text content; In response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, includes: In response to a first input of the text content, obtaining a first text selected in the text content by the first input; According to the association relationship between the audio content and the text content, a first audio segment corresponding to the first text is determined in the audio content; the first audio segment is determined according to a time point in the audio content corresponding to the first text and a length of the first text; the time point is determined according to a position of the first text in the text content and a correspondence between a total duration of the audio content and a total length of the text content; After receiving a preset operation for triggering display of an editing menu, in response to the preset operation, an editing menu pops up, the editing menu including menu items, and the editing operations corresponding to the menu items in the editing menu are set with shortcut keys; in response to the triggering operation of the shortcut key of the target menu item in the editing menu, the editing operation corresponding to the first input is performed on the first text, and an inquiry message is output; the inquiry message is used to prompt the user that the first text is associated with the first audio segment, and to inquire whether the corresponding editing operation needs to be performed on the first audio segment; after receiving the user's consent response message to the inquiry message, the editing operation corresponding to the first input is performed on the first audio segment.
14. The device according to claim 13, characterized in that The association relationship includes a timestamp association relationship.
15. The device according to claim 14, characterized in that The association relationship is a timestamp association relationship, and the response to the first input of the text content, performing an editing operation corresponding to the first input on the audio content and the text content according to the association relationship between the audio content and the text content, includes: In response to a first input to the text content, displaying a cursor position in the text content; Determining a time point corresponding to the progress of the cursor position in the audio content according to a timestamp association relationship between the audio content and the text content; In response to an editing operation corresponding to the first input, a second text is inserted at the cursor position, and a second audio segment corresponding to the second text is inserted at the time point.
16. The device according to claim 15, characterized in that The device is also configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: In response to a second input of the second audio segment, a playback parameter of the second audio segment is set, wherein the playback parameter includes at least one of a playback sound and a playback speed.
17. The device according to claim 13, characterized in that The device is also configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: Display the text content corresponding to the audio content.
18. The device according to claim 13, characterized in that The editing operation includes one or more of the following operations: cutting, copying, pasting, inserting, deleting, modifying, translating, changing voice, and hiding.
19. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the audio editing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Video editing method and editing system
CN108259965A
Voice data processing method and device
CN109036422A
Audio processing method and electronic equipment
CN111445927A
Editing system
CN209089103U
