CN112333336B - Audio editing method and device, electronic equipment and storage medium - Google Patents

Audio editing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112333336B
CN112333336B CN202011154182.XA CN202011154182A CN112333336B CN 112333336 B CN112333336 B CN 112333336B CN 202011154182 A CN202011154182 A CN 202011154182A CN 112333336 B CN112333336 B CN 112333336B
Authority
CN
China
Prior art keywords
audio
waveform
input
target audio
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011154182.XA
Other languages
Chinese (zh)
Other versions
CN112333336A (en
Inventor
叶灵军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Shenzhen Co Ltd
Original Assignee
Vivo Mobile Communication Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Shenzhen Co Ltd filed Critical Vivo Mobile Communication Shenzhen Co Ltd
Priority to CN202011154182.XA priority Critical patent/CN112333336B/en
Publication of CN112333336A publication Critical patent/CN112333336A/en
Application granted granted Critical
Publication of CN112333336B publication Critical patent/CN112333336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/0008Associated control or indicating means
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/02Means for controlling the tone frequencies, e.g. attack or decay; Means for producing special musical effects, e.g. vibratos or glissandos
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H2250/00Aspects of algorithms or signal processing methods without intrinsic musical character, yet specifically adapted for or used in electrophonic musical processing
    • G10H2250/541Details of musical waveform synthesis, i.e. audio waveshape processing from individual wavetable samples, independently of their origin or of the sound they represent
    • G10H2250/615Waveform editing, i.e. setting or modifying parameters for waveform synthesis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses an audio editing method, an audio editing device, electronic equipment and a storage medium, wherein the method is applied to the electronic equipment, the electronic equipment comprises an extensible or contractible screen, and the method comprises the following steps: receiving a first input of a user to the electronic equipment under the condition that a waveform of a target audio is displayed on a screen, wherein the first input is used for controlling the screen to extend or contract; in response to the first input, a waveform of the target audio is edited. According to the method and the device, the audio waveform can be edited, the audio editing mode is enriched, and the audio editing mode is prevented from being too single.

Description

音频编辑方法、装置、电子设备及存储介质Audio editing method, device, electronic device and storage medium

技术领域technical field

本申请属于电子设备领域,具体涉及一种音频编辑方法、装置、电子设备及存储介质。The present application belongs to the field of electronic equipment, and specifically relates to an audio editing method, device, electronic equipment and storage medium.

背景技术Background technique

在日常工作和生活中,用户会听一些音频,例如歌曲、相声、文章、课程等。为了使得音频更加符合用户需求,就需要对音频进行编辑。比如,从音频数据中裁剪出音频片段或者增加背景音乐等。In daily work and life, users will listen to some audio, such as songs, cross talk, articles, courses, etc. In order to make the audio more in line with the user's needs, the audio needs to be edited. For example, cutting out audio clips from audio data or adding background music, etc.

但是,相关技术中的音频编辑方式有限,如此,导致音频编辑方式较为单一。However, the audio editing method in the related art is limited, so the audio editing method is relatively simple.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种音频编辑方法、装置、电子设备及存储介质,能够解决音频编辑方式较为单一的问题。The purpose of the embodiments of the present application is to provide an audio editing method, device, electronic device, and storage medium, which can solve the problem of a relatively single audio editing method.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本申请实施例提供了一种音频编辑方法,所述方法应用于电子设备,所述电子设备包括可伸展或收缩的屏幕,所述方法包括:In a first aspect, an embodiment of the present application provides an audio editing method. The method is applied to an electronic device, and the electronic device includes an extendable or retractable screen, and the method includes:

在所述屏幕上显示有目标音频的波形的情况下,接收用户对所述电子设备的第一输入,所述第一输入用于控制所述屏幕伸展或收缩;In the case where the waveform of the target audio is displayed on the screen, receive a first input from the user to the electronic device, where the first input is used to control the screen to expand or contract;

响应于所述第一输入,对所述目标音频的波形进行编辑。In response to the first input, the waveform of the target audio is edited.

第二方面,本申请实施例提供了一种音频编辑装置,所述装置应用于电子设备,所述电子设备包括可伸展或收缩的屏幕,所述装置包括:In a second aspect, an embodiment of the present application provides an audio editing apparatus, and the apparatus is applied to an electronic device, the electronic device includes an extendable or retractable screen, and the apparatus includes:

接收模块,用于在所述屏幕上显示有目标音频的波形的情况下,接收用户对所述电子设备的第一输入,所述第一输入用于控制所述屏幕伸展或收缩;a receiving module, configured to receive a user's first input to the electronic device when a waveform of the target audio is displayed on the screen, where the first input is used to control the screen to expand or contract;

编辑模块,用于响应于所述第一输入,对所述目标音频的波形进行编辑。An editing module, configured to edit the waveform of the target audio in response to the first input.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.

在本申请实施例中,在屏幕上显示目标音频的波形的情况下,如果接收到用于控制屏幕伸展或收缩的第一输入,那么对目标音频的波形进行编辑。由此,实现了对目标音频的波形进行编辑,丰富了音频的编辑方式,避免音频的编辑方式过于单一。In this embodiment of the present application, when the waveform of the target audio is displayed on the screen, if a first input for controlling the screen to expand or contract is received, the waveform of the target audio is edited. As a result, the waveform editing of the target audio is realized, the audio editing mode is enriched, and the audio editing mode is prevented from being too single.

附图说明Description of drawings

图1是本申请提供的一种音频编辑方法的一个实施例的流程示意图;1 is a schematic flowchart of an embodiment of an audio editing method provided by the application;

图2是本申请提供的一种拉伸屏幕的一个实施例的示意图;2 is a schematic diagram of an embodiment of a stretched screen provided by the present application;

图3是本申请提供的一种音频编辑方法的另一个实施例的流程示意图;3 is a schematic flowchart of another embodiment of an audio editing method provided by the present application;

图4是本申请提供的一种音轨分离的一个实施例的示意图;4 is a schematic diagram of an embodiment of a track separation provided by the application;

图5是本申请提供的一种调节音轨音量的一个实施例的示意图;5 is a schematic diagram of an embodiment of adjusting the volume of a track provided by the present application;

图6是本申请提供的一种调节音轨音量的另一个实施例的示意图;6 is a schematic diagram of another embodiment of adjusting the volume of a track provided by the present application;

图7是本申请提供的一种放大音频波形的一个实施例的示意图;7 is a schematic diagram of an embodiment of an amplified audio waveform provided by the present application;

图8是本申请提供的一种删除目标波形段的一个实施例的示意图;8 is a schematic diagram of an embodiment of deleting a target waveform segment provided by the present application;

图9是本申请提供的一种调节波形频率的一个实施例的示意图;FIG. 9 is a schematic diagram of an embodiment of adjusting the waveform frequency provided by the present application;

图10是本申请提供的一种调节波形频率的另一个实施例的示意图;10 is a schematic diagram of another embodiment of a waveform frequency adjustment provided by the present application;

图11是本申请提供的一种调节部分波形的频率的一个实施例的示意图;11 is a schematic diagram of an embodiment of adjusting the frequency of a partial waveform provided by the present application;

图12是本申请提供的一种调节波形振幅的一个实施例的示意图;FIG. 12 is a schematic diagram of an embodiment of adjusting waveform amplitude provided by the present application;

图13是本申请提供的一种调节波形振幅的另一个实施例的示意图;FIG. 13 is a schematic diagram of another embodiment of adjusting waveform amplitude provided by the present application;

图14是本申请提供的一种调节部分波形的振幅的一个实施例的示意图;14 is a schematic diagram of an embodiment of adjusting the amplitude of a partial waveform provided by the present application;

图15是本申请提供的一种音频编辑装置的一个实施例的结构示意图;15 is a schematic structural diagram of an embodiment of an audio editing apparatus provided by the present application;

图16是本申请提供的一种电子设备的一个实施例的硬件结构示意图。FIG. 16 is a schematic diagram of a hardware structure of an embodiment of an electronic device provided by the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的音频编辑方法进行详细地说明。The audio editing method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

图1是本申请提供的一种音频编辑方法的一个实施例的流程示意图。音频编辑方法应用于电子设备,该电子设备包括可伸展或收缩的屏幕。如图1所示,音频编辑方法包括:FIG. 1 is a schematic flowchart of an embodiment of an audio editing method provided by the present application. The audio editing method is applied to an electronic device including a screen that can be extended or retracted. As shown in Figure 1, the audio editing method includes:

S102,在屏幕上显示有目标音频的波形的情况下,接收用户对电子设备的第一输入,第一输入用于控制屏幕伸展或收缩;S102, in the case where the waveform of the target audio is displayed on the screen, receive a first input from the user to the electronic device, where the first input is used to control the screen to stretch or shrink;

S104,响应于第一输入,对目标音频的波形进行编辑。S104, in response to the first input, edit the waveform of the target audio.

下面对S102和S104分别进行说明。S102 and S104 will be respectively described below.

在S102中,目标音频可以是音频文件中的音频,也可以是视频文件中的音频。In S102, the target audio may be audio in an audio file or audio in a video file.

下面通过图2的示例对可伸展或收缩的屏幕进行说明。The expandable or collapsible screen will be described below through the example of FIG. 2 .

如图2所示,屏幕伸展或收缩的方向可以为Y轴的正方向(比如向上的方向)、Y轴的负方向(比如向下的方向)、X轴的正方向(比如向右的方向)或者X轴的负方向(比如向左的方向)。比如,在Y轴的正方向上拉伸屏幕,以增大屏幕在Y轴方向上的尺寸。As shown in FIG. 2, the direction of screen extension or contraction can be the positive direction of the Y axis (such as the upward direction), the negative direction of the Y axis (such as the downward direction), and the positive direction of the X axis (such as the right direction) ) or the negative direction of the X axis (such as the left direction). For example, stretch the screen in the positive direction of the Y-axis to increase the size of the screen in the direction of the Y-axis.

在S104中,可以根据屏幕伸展或收缩的方向,对目标音频的波形进行编辑。其中,屏幕伸展或收缩的方向不同,对目标音频的波形的编辑方式也不同。因此,可以根据与屏幕伸展或收缩的方向对应的编辑方式对目标音频的波形进行编辑。对目标音频的波形的编辑方式可以为:调节目标音频的音量、对目标音频的波形进行缩放、对目标音频的波形进行裁剪、调节目标音频的波形的振幅或者调节目标音频的波形的频率。In S104, the waveform of the target audio can be edited according to the direction in which the screen is stretched or contracted. Among them, the direction in which the screen is stretched or contracted is different, and the way of editing the waveform of the target audio is also different. Therefore, the waveform of the target audio can be edited according to the editing method corresponding to the direction in which the screen is stretched or contracted. The editing method of the target audio waveform may be: adjusting the volume of the target audio, zooming the target audio waveform, cropping the target audio waveform, adjusting the amplitude of the target audio waveform, or adjusting the frequency of the target audio waveform.

作为一个示例,除了根据屏幕伸展或收缩的方向对目标音频的波形进行编辑之外,还可以根据屏幕伸缩的幅度或屏幕伸缩的速度中的至少一项对目标音频的波形进行编辑。比如,可以根据屏幕伸展或收缩的方向和屏幕伸缩的幅度对音频波形进行编辑。As an example, in addition to editing the waveform of the target audio according to the direction in which the screen is stretched or contracted, the waveform of the target audio may also be edited according to at least one of the magnitude of the screen stretch or the speed of the screen stretch. For example, audio waveforms can be edited based on the direction in which the screen stretches or shrinks and how much the screen stretches.

在本申请实施例中,在屏幕上显示目标音频的波形的情况下,如果接收到用于控制屏幕伸展或收缩的第一输入,那么对目标音频的波形进行编辑。由此,实现了对目标音频的波形进行编辑,丰富了音频的编辑方式,避免音频的编辑方式过于单一。In this embodiment of the present application, when the waveform of the target audio is displayed on the screen, if a first input for controlling the screen to expand or contract is received, the waveform of the target audio is edited. As a result, the waveform editing of the target audio is realized, the audio editing mode is enriched, and the audio editing mode is prevented from being too single.

在本申请的一个或多个实施例中,目标音频包括第一音轨和第二音轨。在此情况下,如图3所示,S104可以包括:In one or more embodiments of the present application, the target audio includes a first audio track and a second audio track. In this case, as shown in FIG. 3, S104 may include:

S1042,响应于第一输入,从目标音频的波形中分离出第一音轨对应的第一音频波形以及第二音轨对应的第二音频波形;S1042, in response to the first input, separate the first audio waveform corresponding to the first audio track and the second audio waveform corresponding to the second audio track from the waveform of the target audio;

S1044,在伸展或收缩后的屏幕上分别显示第一音频波形以及第二音频波形。S1044: Display the first audio waveform and the second audio waveform on the screen after stretching or contracting, respectively.

需要说明的是,在本申请实施例中,目标音频包括第一音轨和第二音轨,当然,目标音频还可以包括除第一音轨和第二音轨之外的第三音轨,在此情况下,除了从目标音频的波形中分离出第一音轨对应的第一音频波形以及第二音轨对应的第二音频波形之外,还可以从目标音频的波形中分离出第三音轨对应的第三音频波形。It should be noted that, in this embodiment of the present application, the target audio includes a first audio track and a second audio track. Of course, the target audio may also include a third audio track other than the first audio track and the second audio track. In this case, in addition to separating the first audio waveform corresponding to the first audio track and the second audio waveform corresponding to the second audio track from the waveform of the target audio, a third audio waveform can also be separated from the waveform of the target audio The third audio waveform corresponding to the track.

下面通过图4的示例说明上述的S1042和S1044。The above-mentioned S1042 and S1044 will be described below through the example of FIG. 4 .

如图4所示,在音频波形包括两个音轨的情况下,比如,两个音轨为伴奏的音轨和人声音轨。再比如,两个音轨为两个人声的音轨,在Y轴的正方向或者Y轴的负方向上伸长屏幕的情况下,从音频波形中分离出两个音轨的波形。As shown in FIG. 4 , in the case where the audio waveform includes two tracks, for example, the two tracks are the accompaniment track and the vocal track. For another example, two audio tracks are audio tracks of two vocals, and when the screen is stretched in the positive direction of the Y-axis or the negative direction of the Y-axis, the waveforms of the two audio tracks are separated from the audio waveform.

在本申请实施例中,通过控制屏幕伸展或收缩,可以从目标音频的波形中分离出各个音轨的音频波形,方便用户根据各个音轨的音频波形对各个音轨进行分析。比如,可以根据各个音轨的音频波形,分析各个音轨在不同时间点上的音量。In the embodiment of the present application, by controlling the screen to stretch or shrink, the audio waveform of each audio track can be separated from the target audio waveform, which is convenient for the user to analyze each audio track according to the audio waveform of each audio track. For example, the volume of each audio track at different time points can be analyzed according to the audio waveform of each audio track.

在本申请的一个或多个实施例中,S1042之后,音频编辑方法还可以包括:In one or more embodiments of the present application, after S1042, the audio editing method may further include:

根据第一输入的输入参数,调整第一音轨的音量大小;其中,第一输入的输入参数包括拉伸长度、收缩长度、拉伸速度和收缩速度中的至少一项。The volume of the first audio track is adjusted according to the input parameters of the first input; wherein the input parameters of the first input include at least one of stretch length, shrink length, stretch speed and shrink speed.

需要说明的是,本申请实施例中调整第一音轨的音量大小。当然,在目标音频包括第二音轨的情况下,也可以根据第一输入的输入参数,调整第二音轨的音量大小。It should be noted that, in the embodiment of the present application, the volume of the first audio track is adjusted. Of course, when the target audio includes the second audio track, the volume of the second audio track can also be adjusted according to the input parameters of the first input.

作为一个示例,在调整第一音轨的音量大小和第二音轨的音量大小的情况下,第一音轨和第二音轨之间音量大小的调节幅度可以不一致。As an example, in the case of adjusting the volume level of the first audio track and the volume level of the second audio track, the adjustment range of the volume level between the first audio track and the second audio track may be inconsistent.

在本申请实施例中,在第一音轨的音频波形从目标音频的波形中分离出的情况下,可以根据屏幕的伸缩幅度或者伸缩速度,调整第一音轨的音量大小,由此,满足了用户对目标音频中单个音轨的音量进行调节的需求。In the embodiment of the present application, when the audio waveform of the first audio track is separated from the waveform of the target audio, the volume of the first audio track can be adjusted according to the expansion and contraction range or the expansion speed of the screen, thereby satisfying the The user needs to adjust the volume of a single track in the target audio.

在本申请的一个或多个实施例中,根据第一输入的输入参数,调整第一音轨的音量大小,可以包括:In one or more embodiments of the present application, adjusting the volume of the first audio track according to the input parameters of the first input may include:

根据第一音轨的音量调节幅度与输入参数之间的预设关系,确定第一音轨的第一音量调节幅度;Determine the first volume adjustment range of the first audio track according to the preset relationship between the volume adjustment range of the first audio track and the input parameter;

根据第一音量调节幅度调整第一音轨的音量大小,其中,第一音轨的音量大小的调整幅度为第一音量调节幅度。The volume of the first audio track is adjusted according to the first volume adjustment range, wherein the adjustment range of the volume of the first audio track is the first volume adjustment range.

在调整第二音轨的音量大小的情况下,可以类似于调整第一音轨的音量大小,调整第二音轨的音量大小,且第二音轨的音量大小的调整幅度为第二音量调节幅度。In the case of adjusting the volume of the second audio track, similar to adjusting the volume of the first audio track, the volume of the second audio track can be adjusted, and the adjustment range of the volume of the second audio track is the second volume adjustment magnitude.

作为一个示例,可以调高第一音轨和第二音轨中的一个音轨的音量大小,并调低另一个音轨的音量大小。As an example, the volume level of one of the first audio track and the second audio track can be turned up, and the volume level of the other audio track can be turned down.

可以根据屏幕伸展或收缩的方向,确定第一音轨和第二音轨中音量调低的音轨和音量调高的音轨。The audio track whose volume is turned down and the audio track whose volume is turned up in the first audio track and the second audio track can be determined according to the direction in which the screen is extended or retracted.

下面以第一音轨为人声音轨,第二音轨为伴奏音轨为例对分离音轨以及调整音轨的音量大小进行说明。The following describes how to separate the audio track and adjust the volume of the audio track by taking the first audio track as the vocal track and the second audio track as the accompaniment audio track as an example.

作为一个示例,如图5所示,在屏幕伸展或收缩的方向为Y轴的正方向的情况下,伴奏波形202和人声波形204分离。As an example, as shown in FIG. 5 , in the case where the direction of screen expansion or contraction is the positive direction of the Y axis, the accompaniment waveform 202 and the vocal waveform 204 are separated.

对于伴奏波形202对应的伴奏音轨,伴奏音轨的音量调节幅度与输入参数(输入参数包括屏幕的伸缩速度和伸缩长度)之间的预设关系可以为如下的公式(1)的函数关系:For the accompaniment track corresponding to the accompaniment waveform 202, the preset relationship between the volume adjustment range of the accompaniment track and the input parameter (the input parameter includes the telescopic speed and the telescopic length of the screen) can be the functional relationship of the following formula (1):

volm=γ*a*b (1)vol m = γ*a*b (1)

对于人声波形204对应的人声音轨,人声音轨的音量调节幅度与输入参数之间的预设关系可以为如下的公式(2)的函数关系:For the vocal track corresponding to the vocal waveform 204, the preset relationship between the volume adjustment range of the vocal track and the input parameter can be the functional relationship of the following formula (2):

volv=(1-γ)*a*b (2)vol v = (1-γ)*a*b (2)

在上述公式(1)和公式(2)中,volm表示伴奏音轨的音量调节幅度,volv表示人声音轨的音量调节幅度,a表示屏幕的伸缩速度,b表示屏幕的伸缩长度,γ是预设系数,γ在0到1之间。伸缩速度为拉伸速度或者收缩速度,伸缩长度可以为拉伸长度或收缩长度。In the above formulas (1) and (2), vol m represents the volume adjustment range of the accompaniment track, vol v represents the volume adjustment range of the vocal track, a represents the expansion and contraction speed of the screen, b represents the expansion and contraction length of the screen, γ is a preset coefficient, γ is between 0 and 1. The stretching speed is the stretching speed or the shrinking speed, and the stretching length may be the stretching length or the shrinking length.

在得到伴奏音轨的音量调节幅度和人声音轨的音量调节幅度之后,可以根据伴奏音轨的音量调节幅度,将伴奏音轨的音量调大,根据人声音轨的音量调节幅度,将人声音轨的音量调小。After obtaining the volume adjustment range of the accompaniment track and the volume adjustment range of the vocal track, you can increase the volume of the accompaniment track according to the volume adjustment range of the accompaniment track. The volume of the vocal track is turned down.

继续参考图5,从图5中的(a)、(b)、(c)中的波形变化可以看出,随着屏幕沿Y轴正方向上的伸展,伴奏波形202对应的伴奏音轨的音量逐渐增大,人声波形204对应的人声音轨的音量逐渐减小。其中,当屏幕伸展到最大尺寸的情况下,人声波形204对应的人声音轨的音量减小至零,即人声静音。Continuing to refer to FIG. 5 , it can be seen from the waveform changes in (a), (b) and (c) of As it increases gradually, the volume of the vocal track corresponding to the vocal waveform 204 gradually decreases. Wherein, when the screen is stretched to the maximum size, the volume of the vocal track corresponding to the vocal waveform 204 is reduced to zero, that is, the vocal is muted.

作为另一个示例,如图6所示,在屏幕伸展或收缩的方向为Y轴的负方向的情况下,伴奏波形202和人声波形204分离。As another example, as shown in FIG. 6 , in the case where the direction of screen expansion or contraction is the negative direction of the Y axis, the accompaniment waveform 202 and the vocal waveform 204 are separated.

对于伴奏波形202对应的伴奏音轨,伴奏音轨的音量调节幅度与输入参数(输入参数包括屏幕的伸缩速度和伸缩长度)之间的预设关系可以为如下的公式(3)所示的函数关系:For the accompaniment track corresponding to the accompaniment waveform 202, the preset relationship between the volume adjustment range of the accompaniment track and the input parameter (the input parameter includes the screen's telescopic speed and telescopic length) can be the function shown in the following formula (3) relation:

volm=(1-γ)*a*b (3)vol m = (1-γ)*a*b (3)

对于人声波形204对应的人声音轨,人声音轨的音量调节幅度与输入参数之间的预设关系可以为如下的公式(4)所示的函数关系:For the vocal track corresponding to the vocal waveform 204, the preset relationship between the volume adjustment range of the vocal track and the input parameter can be the functional relationship shown in the following formula (4):

volv=γ*a*b (4)vol v = γ*a*b (4)

在上述公式(3)和公式(4)中,volm表示伴奏音轨的音量调节幅度,volv表示人声音轨的音量调节幅度,a表示屏幕的伸缩速度,b表示屏幕的伸缩长度,γ是预设系数,γ在0到1之间。In the above formulas (3) and (4), vol m represents the volume adjustment range of the accompaniment track, vol v represents the volume adjustment range of the vocal track, a represents the expansion and contraction speed of the screen, b represents the expansion and contraction length of the screen, γ is a preset coefficient, γ is between 0 and 1.

在得到伴奏音轨的音量调节幅度和人声音轨的音量调节幅度之后,可以根据伴奏音轨的音量调节幅度调小伴奏波形202中的音量,根据人声音轨的音量调节幅度调大人声波形204中的音量。After obtaining the volume adjustment range of the accompaniment track and the volume adjustment range of the vocal track, the volume in the accompaniment waveform 202 can be reduced according to the volume adjustment range of the accompaniment track, and the vocal volume can be increased according to the volume adjustment range of the vocal track Volume in waveform 204 .

继续参考图6,从图6中的(a)、(b)、(c)中的波形变化可以看出,随着屏幕沿Y轴负方向上的伸展,伴奏波形202对应的伴奏音轨的音量逐渐增小,人声波形204对应的人声音轨的音量逐渐减大。当屏幕伸展到最大的情况下,伴奏波形202中的音量减小至零,即伴奏静音。Continuing to refer to FIG. 6 , it can be seen from the waveform changes in (a), (b) and (c) of FIG. 6 that as the screen stretches in the negative direction of the Y-axis, the As the volume gradually decreases, the volume of the vocal track corresponding to the vocal waveform 204 gradually decreases. When the screen is stretched to its maximum, the volume in the accompaniment waveform 202 is reduced to zero, ie the accompaniment is muted.

在一种可选的实施例中,调整第一音轨的音量大小和第二音轨的音量大小,包括:In an optional embodiment, adjusting the volume of the first audio track and the volume of the second audio track includes:

根据输入参数与音量比例之间的预设关系,确定与第一输入的输入参数对应的目标音量比例;Determine the target volume ratio corresponding to the input parameter of the first input according to the preset relationship between the input parameter and the volume ratio;

将第一音轨的与第二音轨的之间音量大小的比例调节至目标音量比例。Adjust the volume ratio between the first audio track and the second audio track to the target volume ratio.

下面以输入参数为屏幕的伸缩速度为例对本申请实施例进行说明。The embodiment of the present application will be described below by taking the input parameter as the telescopic speed of the screen as an example.

假设屏幕的伸缩速度与音量比例之间的预设关系为如下表1的关系:Assume that the preset relationship between the telescopic speed of the screen and the volume ratio is the relationship in Table 1 below:

表1Table 1

屏幕的伸缩速度screen scaling speed 第一音轨与第二音轨的音量比例The volume ratio of the first track to the second track V1V1 M1M1 V2V2 M2M2 V3V3 M3M3

其中,M1、M2和M3均是0至1之间的数值。Wherein, M1, M2 and M3 are all values between 0 and 1.

以及假设在接收到第一输入时,屏幕的收缩速度为V0。在此情况下,如果收缩速度V0在三个预设速度V1、V2、V3中,与V1的差值最小,那么将V1对应的M1确定为目标音量比例。然后,将第一音轨与第二音轨的音量大小之间的比例调节至M1。And suppose that when the first input is received, the shrinking speed of the screen is V0. In this case, if the contraction speed V0 has the smallest difference from V1 among the three preset speeds V1, V2, V3, then M1 corresponding to V1 is determined as the target volume ratio. Then, adjust the ratio between the volume levels of the first audio track and the second audio track to M1.

在输入参数为屏幕的伸缩长度的情况下调节上述两个音轨的波形中的音量的方式,与输入参数为屏幕的伸缩速度的情况下调节上述两个音轨的波形中的音量的方式类似,在此不再重复赘述。The way to adjust the volume in the waveforms of the above two audio tracks when the input parameter is the stretch length of the screen is similar to the way to adjust the volume in the waveforms of the above two audio tracks when the input parameter is the stretch speed of the screen , which will not be repeated here.

在本申请的一个或多个实施例中,接收用户对电子设备的第一输入之前,音频编辑方法还可以包括:In one or more embodiments of the present application, before receiving the user's first input to the electronic device, the audio editing method may further include:

接收在音频波形中选中目标基准点的第二输入;receiving a second input for selecting the target fiducial point in the audio waveform;

响应于第二输入,在音频波形上显示目标基准点。In response to the second input, the target fiducial point is displayed on the audio waveform.

S104可以包括:S104 may include:

以目标基准点为中心,对目标音频的波形进行放大或者缩小。Taking the target reference point as the center, the waveform of the target audio is zoomed in or out.

下面通过图7的示例说明本申请实施例。The embodiments of the present application are described below by using the example of FIG. 7 .

如图7所示,首先接收在目标音频的波形中选中目标基准点206的第二输入,然后,在目标音频的波形上显示目标基准点206。再然后,接收沿X轴的正方向伸展屏幕的第一输入,以目标基准点206为中心,将目标音频的波形进行放大显示。As shown in FIG. 7 , the second input of selecting the target reference point 206 in the waveform of the target audio is first received, and then the target reference point 206 is displayed on the waveform of the target audio. Then, receiving the first input of extending the screen along the positive direction of the X axis, and taking the target reference point 206 as the center, the waveform of the target audio is enlarged and displayed.

当然,在目标音频的波形上显示目标基准点206之后,如果接收沿X轴的反方向伸展屏幕的第一输入,则可以以目标基准点206为中心,将目标音频的波形进行缩小显示。Of course, after the target reference point 206 is displayed on the waveform of the target audio, if the first input of extending the screen in the opposite direction of the X-axis is received, the waveform of the target audio can be displayed in a reduced size with the target reference point 206 as the center.

在本申请实施例中,可以对目标音频的波形进行放大,从而方便用户对目标音频的波形进行处理。另外,还可以对目标音频的波形进行缩小,从而方便用户观看目标音频的波形的整体波动情况。In this embodiment of the present application, the waveform of the target audio can be amplified, so as to facilitate the user to process the waveform of the target audio. In addition, the waveform of the target audio can also be reduced, so that it is convenient for the user to view the overall fluctuation of the waveform of the target audio.

在可选的一种实施例中,接收用户对电子设备的第一输入之前,音频编辑方法还可以包括:In an optional embodiment, before receiving the user's first input to the electronic device, the audio editing method may further include:

接收在音频波形中选中目标波形段的第三输入;receive a third input of the target waveform segment selected in the audio waveform;

响应于第三输入,显示目标波形段处于选中状态。In response to the third input, the display target waveform segment is selected.

需要说明的是,在目标波形段处于选中状态的情况下,目标波形段可以在整个屏幕区域显示。It should be noted that when the target waveform segment is selected, the target waveform segment can be displayed in the entire screen area.

作为一个示例,在目标波形段处于选中状态之后,在接收到对目标波形段中目标位置的输入,且接收到将屏幕收缩至目标波形段中目标位置的第一输入的情况下,将目标波形段中在目标位置之后的波形段删除。As an example, after the target waveform segment is in the selected state, when an input to the target position in the target waveform segment is received, and a first input to shrink the screen to the target position in the target waveform segment is received, the target waveform Waveform segments after the target position in the segment are deleted.

作为另一个示例,音频波形的横轴表示时间,纵轴表示振幅,在目标波形段处于选中状态之后,在接收到第一输入的情况下,将目标波形段从目标音频的波形中删除。其中,目标波形段的两个端点的振幅均为零。由此,可以保证目标波形段是一段完整声音的片段,比如,目标波形段是一个完整句子的语音片段,从而可以对音频波形的声音损失达到最小。As another example, the horizontal axis of the audio waveform represents time, and the vertical axis represents amplitude. After the target waveform segment is selected, the target waveform segment is deleted from the waveform of the target audio when the first input is received. Among them, the amplitude of both endpoints of the target waveform segment is zero. Therefore, it can be ensured that the target waveform segment is a segment of a complete sound, for example, the target waveform segment is a speech segment of a complete sentence, so that the sound loss of the audio waveform can be minimized.

下面对接收在音频波形中选中目标波形段的第三输入进行示例性地说明。The third input for receiving the target waveform segment selected in the audio waveform is exemplarily described below.

作为一个示例,接收在音频波形中选中目标波形段的第三输入可以包括:分别接收在音频波形中选中两个点的第三输入,该两个点之间的波形段为目标波形段。As an example, receiving the third input of selecting the target waveform segment in the audio waveform may include: respectively receiving the third input of selecting two points in the audio waveform, and the waveform segment between the two points is the target waveform segment.

作为另一个示例,接收在音频波形中选中目标波形段的第三输入可以包括:接收在音频波形中选中一个点的第三输入,该点之后的波形段为目标波形段。As another example, receiving a third input of selecting a target waveform segment in the audio waveform may include receiving a third input of selecting a point in the audio waveform, and the waveform segment after the point is the target waveform segment.

从上述两个示例可以看出,用户可以先在音频波形中选中一个或两个点,在接收到用户的第一输入的情况下,如果在音频波形中已选中两个点,则将两个点之间的波形段确定为目标波形段。如果在音频波形中已选中一个点,则将该点之后的波形段确定为目标波形段。As can be seen from the above two examples, the user can first select one or two points in the audio waveform, and when the user's first input is received, if two points have been selected in the audio waveform, the two The waveform segment between the points is determined as the target waveform segment. If a point has been selected in the audio waveform, the waveform segment after that point is determined as the target waveform segment.

在本申请实施例中,用户可以根据自己的需求在音频波形中选中目标波形段,然后可以对目标波形段进行编辑,从而满足用户对音频波形中的局部波形段进行编辑的需求。In this embodiment of the present application, the user can select a target waveform segment in the audio waveform according to his own requirements, and then edit the target waveform segment, so as to meet the user's requirement for editing a local waveform segment in the audio waveform.

在本申请的一个或多个实施例中,在将目标音频的波形中某一波形段删除之后,音频编辑方法还可以包括:In one or more embodiments of the present application, after deleting a certain waveform segment in the waveform of the target audio, the audio editing method may further include:

将目标音频的波形中位于已删除的波形段两侧的波形片段进行拼接,得到编辑之后的波形。Splicing the waveform segments on both sides of the deleted waveform segment in the waveform of the target audio to obtain the edited waveform.

下面通过图8的示例对本申请实施例进行说明。The embodiments of the present application will be described below by using the example of FIG. 8 .

首先,如图8(a)所示,接收在音频波形中选中A点和B点的第三输入,从而在音频波形中选中A点和B点之间的目标波形段208,使得目标波形段208处于可编辑状态。其中,A点和B点的振幅均为零。然后,接收沿X轴的反方向上收缩屏幕的第一输入,对音频波形进行编辑。First, as shown in FIG. 8(a), a third input for selecting points A and B in the audio waveform is received, so that the target waveform segment 208 between points A and B is selected in the audio waveform, so that the target waveform segment 208 is editable. Among them, the amplitudes of points A and B are both zero. Then, the audio waveform is edited by receiving a first input of shrinking the screen in the opposite direction of the X-axis.

具体地,如图8(b)所示,将目标波形段208从音频波形中删除,并且将A点和B点拼接在一起,以将音频波形中位于目标波形段208两侧的波形片段进行拼接,得到编辑之后的波形。Specifically, as shown in FIG. 8( b ), the target waveform segment 208 is deleted from the audio waveform, and points A and B are spliced together, so that the waveform segments located on both sides of the target waveform segment 208 in the audio waveform are processed. Splicing to get the edited waveform.

在本申请实施例中,用户可以根据自己的需求将目标波形段从音频波形中删除,从而满足用户对音频波形中的局部波形段进行编辑的需求。In the embodiment of the present application, the user can delete the target waveform segment from the audio waveform according to his own requirements, so as to meet the user's requirement for editing local waveform segments in the audio waveform.

在本申请的一个或多个实施例中,在屏幕上以第一显示方式显示目标音频的波形,S104可以包括:In one or more embodiments of the present application, the waveform of the target audio is displayed on the screen in a first display manner, and S104 may include:

响应于第一输入,在第一输入为朝第一方向拉伸的输入的情况下,将目标音频的波形沿第一坐标轴方向拉长,其中,目标音频在拉长之后的时长大于目标音频在拉长之前的时长;In response to the first input, in the case where the first input is an input stretched in the first direction, the waveform of the target audio is elongated along the direction of the first coordinate axis, wherein the duration of the target audio after being elongated is longer than the target audio the length of time before stretching;

或者,or,

响应于第一输入,在第一输入为朝第二方向收缩的输入的情况下,将目标音频的波形沿第一坐标轴方向压缩,目标音频在压缩之后的时长小于目标音频在压缩之前的时长。In response to the first input, in the case where the first input is an input that shrinks in the second direction, compress the waveform of the target audio along the direction of the first coordinate axis, and the duration of the target audio after compression is shorter than the duration of the target audio before compression .

下面以第一显示方式为横屏显示方式为例,并通过图9和图10对本申请实施例进行说明。Hereinafter, the first display mode is taken as an example of a horizontal screen display mode, and the embodiments of the present application are described with reference to FIG. 9 and FIG. 10 .

如图9(a)所示,在屏幕以横屏方式显示目标音频的波形的情况下,在接收到在X轴正正方向上拉伸屏幕的第一输入的情况下,将目标音频的波形沿X轴方向拉长,得到如图9(b)所示的波形。As shown in Fig. 9(a), in the case where the screen displays the waveform of the target audio in a horizontal screen, in the case of receiving the first input that stretches the screen in the positive direction of the X axis, the waveform of the target audio is moved along the The X-axis direction is elongated to obtain a waveform as shown in Fig. 9(b).

如图10(a)所示,在屏幕以横屏方式显示目标音频的波形的情况下,在接收到沿X轴反方向收缩屏幕的第一输入的情况下,将目标音频的波形沿X轴方向压缩,得到如图10(b)所示的波形。As shown in Fig. 10(a), in the case where the screen displays the waveform of the target audio in a horizontal screen mode, in the case of receiving the first input of shrinking the screen in the opposite direction of the X-axis, the waveform of the target audio is displayed along the X-axis. Directional compression, the waveform shown in Figure 10(b) is obtained.

需要说明的是,可以将目标音频的整个波形沿第一坐标轴方向拉长或者压缩,也可以将目标音频的部分波形沿第一坐标轴方向拉长或者压缩。下面通过图11对本申请实施例进行说明。It should be noted that, the entire waveform of the target audio may be elongated or compressed along the direction of the first coordinate axis, or part of the waveform of the target audio may be elongated or compressed along the direction of the first coordinate axis. The embodiment of the present application will be described below with reference to FIG. 11 .

如图11(a)所示,在屏幕以横屏方式显示目标音频的波形的情况下,在选中目标波形段208之后,在接收到在X轴正方向上拉伸屏幕的第一输入的情况下,将目标波形段208沿X轴方向拉长,得到如图11(b)所示的目标波形段208’。As shown in FIG. 11( a ), in the case where the screen displays the waveform of the target audio in a landscape mode, after the target waveform segment 208 is selected, in the case of receiving the first input of stretching the screen in the positive direction of the X axis , the target waveform segment 208 is elongated along the X-axis direction to obtain the target waveform segment 208 ′ shown in FIG. 11( b ).

在本申请实施例中,用户可以根据自己的需求拉伸或收缩屏幕,来将目标音频的波形沿第一坐标轴方向进行压缩或拉长,以调节目标音频的频率,从而对目标音频进行变速。In this embodiment of the present application, the user can stretch or shrink the screen according to their own needs to compress or stretch the waveform of the target audio along the direction of the first coordinate axis, so as to adjust the frequency of the target audio, thereby changing the speed of the target audio. .

在本申请的一个或多个实施例中,在屏幕以第二显示方式显示目标音频的波形;S104可以包括:In one or more embodiments of the present application, the waveform of the target audio is displayed on the screen in a second display manner; S104 may include:

响应于第一输入,在第一输入为朝第三方向拉伸的输入的情况下,将目标音频的波形沿第二坐标轴方向拉长,其中,目标音频在拉长之后的音量大于目标音频在拉长之前的音量;In response to the first input, in the case where the first input is an input stretched toward the third direction, the waveform of the target audio is elongated along the direction of the second coordinate axis, wherein the volume of the target audio after the stretching is greater than the target audio volume before elongation;

或者,or,

响应于第一输入,在第一输入为朝第四方向拉伸的输入的情况下,将目标音频的波形沿第二坐标轴方向压缩,其中,目标音频在压缩之后的音量小于目标音频在压缩之前的音量。In response to the first input, in the case where the first input is an input stretched toward the fourth direction, the waveform of the target audio is compressed along the direction of the second coordinate axis, wherein the volume of the target audio after compression is smaller than that of the target audio after compression. previous volume.

下面以第二显示方式为竖屏显示方式为例,并通过图12和图13对本申请实施例进行说明。In the following, the second display mode is taken as an example of a vertical screen display mode, and FIG. 12 and FIG. 13 are used to describe the embodiments of the present application.

如图12(a)所示,在屏幕以竖屏方式显示目标音频的波形的情况下,在接收到沿Y轴的正方向拉伸屏幕的第一输入的情况下,将目标音频的波形沿Y轴正方向上拉长,以增大目标音频的波形的振幅,得到如图12(b)所示的波形。As shown in Fig. 12(a), in the case where the screen displays the waveform of the target audio in a vertical screen, in the case of receiving the first input of stretching the screen in the positive direction of the Y axis, the waveform of the target audio is displayed along the The Y-axis is elongated in the positive direction to increase the amplitude of the waveform of the target audio, and the waveform shown in Figure 12(b) is obtained.

如图13(a)所示,在屏幕以竖屏方式显示目标音频的波形的情况下,在接收到沿Y轴反方向收缩屏幕的第一输入的情况下,将目标音频的波形沿Y轴方向压缩,以减小目标音频的波形的振幅,得到如图13(b)所示的波形。As shown in Fig. 13(a), in the case where the screen displays the waveform of the target audio in the vertical screen mode, in the case of receiving the first input of shrinking the screen in the opposite direction along the Y axis, the waveform of the target audio is displayed along the Y axis. Directional compression is used to reduce the amplitude of the waveform of the target audio, and the waveform shown in Figure 13(b) is obtained.

需要说明的是,可以将目标音频的整个波形沿第二坐标轴方向拉长或者压缩,也可以将目标音频的部分波形沿第二坐标轴方向拉长或者压缩。下面通过图14对本申请实施例进行说明。It should be noted that, the entire waveform of the target audio may be elongated or compressed along the direction of the second coordinate axis, or part of the waveform of the target audio may be elongated or compressed along the direction of the second coordinate axis. The embodiment of the present application will be described below with reference to FIG. 14 .

如图14(a)所示,在屏幕以竖屏方式显示目标音频的波形的情况下,在选中目标波形段208之后,在接收到沿Y轴正方向拉伸屏幕的第一输入的情况下,将目标波形段208沿Y轴方向拉长,得到如图14(b)所示的目标波形段208”。As shown in FIG. 14( a ), in the case where the screen displays the waveform of the target audio in a vertical screen, after selecting the target waveform segment 208 , in the case of receiving the first input of stretching the screen along the positive direction of the Y axis , the target waveform segment 208 is elongated along the Y-axis direction to obtain the target waveform segment 208 ″ shown in FIG. 14( b ).

在本申请实施例中,用户可以根据自己的需求拉伸或收缩屏幕,来将目标音频的波形沿第二坐标轴方向进行压缩或拉长,以调节目标音频的波形的振幅,从而调节目标音频的音量。In this embodiment of the present application, the user can stretch or shrink the screen according to their own needs to compress or stretch the waveform of the target audio along the direction of the second coordinate axis to adjust the amplitude of the waveform of the target audio, thereby adjusting the target audio volume.

与本申请提供的音频编辑方法对应地,本申请提供一种音频编辑装置。音频编辑装置应用于电子设备,电子设备包括可伸展或收缩的屏幕。Corresponding to the audio editing method provided by the present application, the present application provides an audio editing apparatus. The audio editing apparatus is applied to electronic equipment including an extendable or retractable screen.

图15是本申请提供的一种音频编辑装置的一个实施例的结构示意图。如图15所示,音频编辑装置300可以包括:FIG. 15 is a schematic structural diagram of an embodiment of an audio editing apparatus provided by the present application. As shown in FIG. 15 , the audio editing apparatus 300 may include:

接收模块302,用于在屏幕上显示有目标音频的波形的情况下,接收用户对电子设备的第一输入,第一输入用于控制屏幕伸展或收缩;a receiving module 302, configured to receive a first input from the user to the electronic device when the waveform of the target audio is displayed on the screen, where the first input is used to control the screen to expand or contract;

编辑模块304,用于响应于第一输入,对目标音频的波形进行编辑。The editing module 304 is configured to edit the waveform of the target audio in response to the first input.

在本申请实施例中,在屏幕上显示目标音频的波形的情况下,如果接收到用于控制屏幕伸展或收缩的第一输入,那么对目标音频的波形进行编辑。由此,实现了对目标音频的波形进行编辑,丰富了音频的编辑方式,避免音频的编辑方式过于单一。In this embodiment of the present application, when the waveform of the target audio is displayed on the screen, if a first input for controlling the screen to expand or contract is received, the waveform of the target audio is edited. As a result, the waveform editing of the target audio is realized, the audio editing mode is enriched, and the audio editing mode is prevented from being too single.

在本申请的一个或多个实施例中,目标音频包括第一音轨和第二音轨,编辑模块304可以包括:In one or more embodiments of the present application, the target audio includes a first audio track and a second audio track, and the editing module 304 may include:

分离单元,用于响应于第一输入,从目标音频的波形中分离出第一音轨对应的第一音频波形以及第二音轨对应的第二音频波形;A separation unit, used to separate the first audio waveform corresponding to the first audio track and the second audio waveform corresponding to the second audio track from the waveform of the target audio in response to the first input;

显示单元,用于在伸展或收缩后的屏幕上分别显示第一音频波形以及第二音频波形。The display unit is used for displaying the first audio waveform and the second audio waveform respectively on the screen after stretching or contracting.

在本申请实施例中,通过控制屏幕伸展或收缩,可以从目标音频的波形中分离出各个音轨的音频波形,方便用户根据各个音轨的音频波形对各个音轨进行分析。比如,可以根据各个音轨的音频波形,分析各个音轨在不同时间点上的音量。In the embodiment of the present application, by controlling the screen to stretch or shrink, the audio waveform of each audio track can be separated from the target audio waveform, which is convenient for the user to analyze each audio track according to the audio waveform of each audio track. For example, the volume of each audio track at different time points can be analyzed according to the audio waveform of each audio track.

在本申请的一个或多个实施例中,音频编辑装置300还可以包括:In one or more embodiments of the present application, the audio editing apparatus 300 may further include:

音量调整模块,用于根据第一输入的输入参数,调整第一音轨的音量大小;其中,第一输入的输入参数包括拉伸长度、收缩长度、拉伸速度和收缩速度中的至少一项。The volume adjustment module is used to adjust the volume of the first audio track according to the input parameters of the first input; wherein, the input parameters of the first input include at least one of stretching length, shrinking length, stretching speed and shrinking speed .

在本申请实施例中,在第一音轨的音频波形从目标音频的波形中分离出的情况下,可以根据屏幕的伸缩幅度或者伸缩速度,调整第一音轨的音量大小,由此,满足了用户对目标音频中单个音轨的音量进行调节的需求。In the embodiment of the present application, when the audio waveform of the first audio track is separated from the waveform of the target audio, the volume of the first audio track can be adjusted according to the expansion and contraction range or the expansion speed of the screen, thereby satisfying the The user needs to adjust the volume of a single track in the target audio.

在本申请的一个或多个实施例中,屏幕以第一显示方式显示目标音频的波形;编辑模块304可以包括:In one or more embodiments of the present application, the screen displays the waveform of the target audio in a first display manner; the editing module 304 may include:

第一拉长单元,用于响应于第一输入,在第一输入为朝第一方向拉伸的输入的情况下,将目标音频的波形沿第一坐标轴方向拉长,其中,目标音频在拉长之后的时长大于目标音频在拉长之前的时长;The first elongation unit is configured to, in response to the first input, elongate the waveform of the target audio along the direction of the first coordinate axis when the first input is an input extending in the first direction, wherein the target audio is in the direction of the first coordinate axis. The duration after stretching is greater than the duration of the target audio before stretching;

或者,or,

第一压缩单元,用于响应于第一输入,在第一输入为朝第二方向收缩的输入的情况下,将目标音频的波形沿第一坐标轴方向压缩,目标音频在压缩之后的时长小于目标音频在压缩之前的时长。The first compression unit is configured to, in response to the first input, compress the waveform of the target audio along the direction of the first coordinate axis in the case where the first input is an input that shrinks in the second direction, and the duration of the target audio after compression is less than The duration of the target audio before compression.

在本申请实施例中,用户可以根据自己的需求拉伸或收缩屏幕,来将目标音频的波形沿第一坐标轴方向进行压缩或拉长,以调节目标音频的频率,从而对目标音频进行变速。In this embodiment of the present application, the user can stretch or shrink the screen according to their own needs to compress or stretch the waveform of the target audio along the direction of the first coordinate axis, so as to adjust the frequency of the target audio, thereby changing the speed of the target audio. .

在本申请的一个或多个实施例中,屏幕以第二显示方式显示目标音频的波形;编辑模块304可以包括:In one or more embodiments of the present application, the screen displays the waveform of the target audio in a second display manner; the editing module 304 may include:

第二拉长单元,用于响应于第一输入,在第一输入为朝第三方向拉伸的输入的情况下,将目标音频的波形沿第二坐标轴方向拉长,其中,目标音频在拉长之后的音量大于目标音频在拉长之前的音量;The second stretching unit is configured to, in response to the first input, stretch the waveform of the target audio along the direction of the second coordinate axis in the case that the first input is an input stretched toward the third direction, wherein the target audio is in the direction of the second coordinate axis. The volume after stretching is greater than the volume of the target audio before stretching;

或者,or,

第二压缩单元,用于响应于第一输入,在第一输入为朝第四方向拉伸的输入的情况下,将目标音频的波形沿第二坐标轴方向压缩,其中,目标音频在压缩之后的音量小于目标音频在压缩之前的音量。The second compression unit is configured to, in response to the first input, compress the waveform of the target audio along the direction of the second coordinate axis when the first input is an input stretched toward the fourth direction, wherein the target audio is compressed after the compression is lower than the volume of the target audio before compression.

在本申请实施例中,用户可以根据自己的需求拉伸或收缩屏幕,来将目标音频的波形沿第二坐标轴方向进行压缩或拉长,以调节目标音频的波形的振幅,从而调节目标音频的音量。In this embodiment of the present application, the user can stretch or shrink the screen according to their own needs to compress or stretch the waveform of the target audio along the direction of the second coordinate axis to adjust the amplitude of the waveform of the target audio, thereby adjusting the target audio volume.

需要说明的是,上述请实施例中以执行主体为音频编辑装置为例说明执行音频编辑方法。但是,本申请实施例提供的音频编辑方法的执行主体不限于音频编辑装置,也可以为音频编辑装置中的用于执行加载音频编辑方法的控制模块。It should be noted that, in the above-mentioned embodiments, the method for executing audio editing is described by taking the execution subject as an audio editing apparatus as an example. However, the execution body of the audio editing method provided by the embodiment of the present application is not limited to the audio editing apparatus, and may also be a control module in the audio editing apparatus for executing the loading audio editing method.

本申请实施例中的音频编辑装置可以是装置,也可以是装置中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The audio editing apparatus in this embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in the apparatus. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc., the non-mobile electronic device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiments of the present application.

本申请实施例中的音频编辑装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The audio editing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

本申请实施例提供的音频编辑装置能够实现图1或图3方法实施例中音频编辑装置实现的各个过程,为避免重复,这里不再赘述。The audio editing apparatus provided in this embodiment of the present application can implement each process implemented by the audio editing apparatus in the method embodiment of FIG. 1 or FIG. 3 , and to avoid repetition, details are not repeated here.

本申请还提供一种电子设备,包括处理器,存储器,存储在存储器上并可在处理器上运行的程序或指令,该程序或指令被处理器执行时实现上述音频编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The present application further provides an electronic device, including a processor, a memory, a program or an instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, each process of the above audio editing method embodiment is implemented , and can achieve the same technical effect, in order to avoid repetition, it is not repeated here.

需要注意的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.

图16是本申请提供的一种电子设备的一个实施例的硬件结构示意图。FIG. 16 is a schematic diagram of a hardware structure of an embodiment of an electronic device provided by the present application.

该电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、以及处理器410等部件。The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, etc. part.

其中,输入单元404可以包括图形处理器4041和麦克风4042。显示单元406包括显示面板4061。用户输入单元407可以包括触控面板4071和其他输入设备4072。存储器409可以包括应用程序和操作系统。The input unit 404 may include a graphics processor 4041 and a microphone 4042 . The display unit 406 includes a display panel 4061 . The user input unit 407 may include a touch panel 4071 and other input devices 4072 . Memory 409 may include application programs and an operating system.

本领域技术人员可以理解,电子设备400还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图16中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 400 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 16 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .

其中,显示面板4061可以为可伸展或收缩的屏幕。The display panel 4061 may be an extendable or retractable screen.

用户输入单元407用于在屏幕上显示有目标音频的波形的情况下,接收用户对电子设备的第一输入,第一输入用于控制屏幕伸展或收缩;The user input unit 407 is configured to receive the first input from the user to the electronic device when the waveform of the target audio is displayed on the screen, where the first input is used to control the screen to expand or contract;

处理器410用于响应于第一输入,对目标音频的波形进行编辑。The processor 410 is configured to edit the waveform of the target audio in response to the first input.

在本申请实施例中,在屏幕上显示目标音频的波形的情况下,如果接收到用于控制屏幕伸展或收缩的第一输入,那么对目标音频的波形进行编辑。由此,实现了对目标音频的波形进行编辑,丰富了音频的编辑方式,避免音频的编辑方式过于单一。In this embodiment of the present application, when the waveform of the target audio is displayed on the screen, if a first input for controlling the screen to expand or contract is received, the waveform of the target audio is edited. As a result, the waveform editing of the target audio is realized, the audio editing mode is enriched, and the audio editing mode is prevented from being too single.

在本申请的一个或多个实施例中,目标音频包括第一音轨和第二音轨,In one or more embodiments of the present application, the target audio includes a first audio track and a second audio track,

处理器410用于响应于第一输入,从目标音频的波形中分离出第一音轨对应的第一音频波形以及第二音轨对应的第二音频波形;The processor 410 is configured to, in response to the first input, separate the first audio waveform corresponding to the first audio track and the second audio waveform corresponding to the second audio track from the waveform of the target audio;

显示单元406用于在伸展或收缩后的屏幕上分别显示第一音频波形以及第二音频波形。The display unit 406 is configured to display the first audio waveform and the second audio waveform respectively on the screen after stretching or contracting.

在本申请实施例中,通过控制屏幕伸展或收缩,可以从目标音频的波形中分离出各个音轨的音频波形,方便用户根据各个音轨的音频波形对各个音轨进行分析。比如,可以根据各个音轨的音频波形,分析各个音轨在不同时间点上的音量。In the embodiment of the present application, by controlling the screen to stretch or shrink, the audio waveform of each audio track can be separated from the target audio waveform, which is convenient for the user to analyze each audio track according to the audio waveform of each audio track. For example, the volume of each audio track at different time points can be analyzed according to the audio waveform of each audio track.

在本申请的一个或多个实施例中,处理器410还用于根据第一输入的输入参数,调整第一音轨的音量大小;其中,第一输入的输入参数包括拉伸长度、收缩长度、拉伸速度和收缩速度中的至少一项。In one or more embodiments of the present application, the processor 410 is further configured to adjust the volume of the first audio track according to the input parameter of the first input; wherein the input parameter of the first input includes the stretch length and the shrinkage length , at least one of stretching speed and shrinking speed.

在本申请实施例中,在第一音轨的音频波形从目标音频的波形中分离出的情况下,可以根据屏幕的伸缩幅度或者伸缩速度,调整第一音轨的音量大小,由此,满足了用户对目标音频中单个音轨的音量进行调节的需求。In the embodiment of the present application, when the audio waveform of the first audio track is separated from the waveform of the target audio, the volume of the first audio track can be adjusted according to the expansion and contraction range or the expansion speed of the screen, thereby satisfying the The user needs to adjust the volume of a single track in the target audio.

在本申请的一个或多个实施例中,在屏幕上以第一显示方式显示目标音频的波形;In one or more embodiments of the present application, the waveform of the target audio is displayed on the screen in a first display manner;

处理器410具体用于响应于第一输入,在第一输入为朝第一方向拉伸的输入的情况下,将目标音频的波形沿第一坐标轴方向拉长,其中,目标音频在拉长之后的时长大于目标音频在拉长之前的时长;The processor 410 is specifically configured to, in response to the first input, extend the waveform of the target audio along the direction of the first coordinate axis in the case that the first input is an input extending in the first direction, wherein the target audio is being elongated. The duration after that is longer than the duration of the target audio before it is elongated;

或者,or,

处理器410具体用于响应于第一输入,在第一输入为朝第二方向收缩的输入的情况下,将目标音频的波形沿第一坐标轴方向压缩,目标音频在压缩之后的时长小于目标音频在压缩之前的时长。The processor 410 is specifically configured to, in response to the first input, compress the waveform of the target audio along the direction of the first coordinate axis in the case where the first input is an input that shrinks in the second direction, and the duration of the target audio after compression is smaller than the target audio The duration of the audio before being compressed.

在本申请实施例中,用户可以根据自己的需求拉伸或收缩屏幕,来将目标音频的波形沿第一坐标轴方向进行压缩或拉长,以调节目标音频的频率,从而对目标音频进行变速。In this embodiment of the present application, the user can stretch or shrink the screen according to their own needs to compress or stretch the waveform of the target audio along the direction of the first coordinate axis, so as to adjust the frequency of the target audio, thereby changing the speed of the target audio. .

在本申请的一个或多个实施例中,在屏幕以第二显示方式显示目标音频的波形;In one or more embodiments of the present application, the waveform of the target audio is displayed on the screen in a second display manner;

处理器410具体用于响应于第一输入,在第一输入为朝第三方向拉伸的输入的情况下,将目标音频的波形沿第二坐标轴方向拉长,其中,目标音频在拉长之后的音量大于目标音频在拉长之前的音量;The processor 410 is specifically configured to, in response to the first input, lengthen the waveform of the target audio along the direction of the second coordinate axis in the case that the first input is an input that is stretched toward the third direction, wherein the target audio is being stretched. The volume after that is greater than the volume of the target audio before it is elongated;

或者,or,

处理器410具体用于响应于第一输入,在第一输入为朝第四方向拉伸的输入的情况下,将目标音频的波形沿第二坐标轴方向压缩,其中,目标音频在压缩之后的音量小于目标音频在压缩之前的音量。The processor 410 is specifically configured to, in response to the first input, compress the waveform of the target audio along the direction of the second coordinate axis in the case that the first input is an input stretched in the fourth direction, wherein the target audio is compressed in the direction of the second coordinate axis. The volume is lower than the volume of the target audio before compression.

在本申请实施例中,用户可以根据自己的需求拉伸或收缩屏幕,来将目标音频的波形沿第二坐标轴方向进行压缩或拉长,以调节目标音频的波形的振幅,从而调节目标音频的音量。In this embodiment of the present application, the user can stretch or shrink the screen according to their own needs to compress or stretch the waveform of the target audio along the direction of the second coordinate axis to adjust the amplitude of the waveform of the target audio, thereby adjusting the target audio volume.

本申请还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述音频编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The present application also provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned audio editing method embodiment can be achieved, and the same technical effect can be achieved, In order to avoid repetition, details are not repeated here.

其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、磁碟或者光盘等。The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

本申请还提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述音频编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The present application also provides a chip, the chip includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used for running programs or instructions, implementing the various processes of the above audio editing method embodiments, and can achieve the same technical effect , in order to avoid repetition, it will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (10)

1. An audio editing method applied to an electronic device including an extendable or retractable screen, the method comprising:
receiving a first input of a user to the electronic device under the condition that a waveform of target audio is displayed on the screen, wherein the first input is used for controlling the screen to extend or contract;
editing a waveform of the target audio in response to the first input.
2. The method of claim 1, wherein the target audio comprises a first audio track and a second audio track,
the editing the waveform of the target audio in response to the first input includes:
in response to the first input, separating a first audio waveform corresponding to the first audio track and a second audio waveform corresponding to the second audio track from the waveforms of the target audio;
displaying the first audio waveform and the second audio waveform on the expanded or contracted screen respectively.
3. The method of claim 2, wherein after separating a first audio waveform corresponding to the first track and a second audio waveform corresponding to the second track from the waveform of the target audio, the method further comprises:
adjusting the volume of the first audio track according to the input parameter of the first input;
wherein the input parameters of the first input include at least one of stretch length, shrink length, stretch speed, and shrink speed.
4. The method according to claim 1, wherein the waveform of the target audio is displayed on a screen in a first display manner;
the editing the waveform of the target audio in response to the first input includes:
in response to the first input, in a case where the first input is an input that is stretched in a first direction, elongating a waveform of the target audio in a first coordinate axis direction, wherein a time length of the target audio after elongation is longer than a time length of the target audio before elongation;
or,
in response to the first input, in a case where the first input is a contraction input in a second direction, compressing the waveform of the target audio in a direction of a first coordinate axis, the duration of the target audio after compression being smaller than the duration of the target audio before compression.
5. The method according to claim 1, wherein the waveform of the target audio is displayed on the screen in a second display manner;
the editing the waveform of the target audio in response to the first input includes:
in response to the first input, in a case where the first input is an input that is stretched in a third direction, elongating a waveform of the target audio in a second coordinate axis direction, wherein a volume of the target audio after elongation is larger than a volume of the target audio before elongation;
or,
in response to the first input, in a case where the first input is an input that is stretched in a fourth direction, compressing the waveform of the target audio in a second coordinate axis direction, wherein a volume of the target audio after compression is smaller than a volume of the target audio before compression.
6. An audio editing apparatus applied to an electronic device including an extendable or retractable screen, the apparatus comprising:
the receiving module is used for receiving a first input of a user to the electronic equipment under the condition that the waveform of the target audio is displayed on the screen, wherein the first input is used for controlling the screen to extend or contract;
and the editing module is used for responding to the first input and editing the waveform of the target audio.
7. The apparatus of claim 6, wherein the target audio comprises a first audio track and a second audio track,
the editing module comprises:
a separation unit configured to separate, in response to the first input, a first audio waveform corresponding to the first track and a second audio waveform corresponding to the second track from waveforms of the target audio;
a display unit for displaying the first audio waveform and the second audio waveform on the extended or contracted screen, respectively.
8. The apparatus of claim 7, further comprising:
the volume adjusting module is used for adjusting the volume of the first audio track according to the input parameter of the first input;
wherein the input parameters of the first input include at least one of stretch length, shrink length, stretch speed, and shrink speed.
9. The apparatus of claim 6, wherein the screen displays the waveform of the target audio in a first display mode;
the editing module comprises:
a first elongation unit configured to, in response to the first input, elongate a waveform of the target audio in a first axis direction in a case where the first input is an input elongated in a first direction, wherein a time length of the target audio after the elongation is longer than a time length of the target audio before the elongation;
or,
a first compression unit configured to compress a waveform of the target audio in a first coordinate axis direction in response to the first input in a case where the first input is an input contracting in a second direction, a time length of the target audio after compression being smaller than a time length of the target audio before compression.
10. The apparatus according to claim 6, wherein the screen displays the waveform of the target audio in a second display manner;
the editing module comprises:
a second elongation unit configured to, in response to the first input, elongate the waveform of the target audio in a second coordinate axis direction in a case where the first input is an input elongated in a third direction, wherein a volume of the target audio after the elongation is larger than a volume of the target audio before the elongation;
or,
a second compression unit configured to compress the waveform of the target audio in a second coordinate axis direction in response to the first input in a case where the first input is an input stretched in a fourth direction, wherein a volume of the target audio after compression is smaller than a volume of the target audio before compression.
CN202011154182.XA 2020-10-26 2020-10-26 Audio editing method and device, electronic equipment and storage medium Active CN112333336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011154182.XA CN112333336B (en) 2020-10-26 2020-10-26 Audio editing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011154182.XA CN112333336B (en) 2020-10-26 2020-10-26 Audio editing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112333336A CN112333336A (en) 2021-02-05
CN112333336B true CN112333336B (en) 2022-05-17

Family

ID=74310998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011154182.XA Active CN112333336B (en) 2020-10-26 2020-10-26 Audio editing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112333336B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821189B (en) * 2021-11-25 2023-07-21 广州酷狗计算机科技有限公司 Audio playing method, device, terminal equipment and storage medium
CN116939323A (en) * 2022-04-01 2023-10-24 腾讯科技(深圳)有限公司 Music matching method, device, electronic equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012160415A1 (en) * 2011-05-24 2012-11-29 Nokia Corporation An apparatus with an audio equalizer and associated method
CN105989782A (en) * 2015-03-23 2016-10-05 Lg电子株式会社 Stretchable display device and operating method thereof
CN106921802A (en) * 2017-03-17 2017-07-04 东软集团股份有限公司 The player method and device of voice data
CN110351407A (en) * 2019-08-08 2019-10-18 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal
CN110865758A (en) * 2019-10-29 2020-03-06 维沃移动通信有限公司 Display method and electronic equipment
CN110908759A (en) * 2019-11-19 2020-03-24 维沃移动通信有限公司 Display method and electronic equipment
CN111124179A (en) * 2019-12-20 2020-05-08 维沃移动通信有限公司 Information processing method and electronic equipment
CN111159983A (en) * 2019-12-31 2020-05-15 维沃移动通信有限公司 Editing method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9159363B2 (en) * 2010-04-02 2015-10-13 Adobe Systems Incorporated Systems and methods for adjusting audio attributes of clip-based audio content
CN107071641A (en) * 2017-03-31 2017-08-18 李宗盛 Electronic equipment for editing multiple audio tracks in real time and processing method
CN111459374B (en) * 2020-03-30 2022-03-29 维沃移动通信有限公司 Interaction method and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012160415A1 (en) * 2011-05-24 2012-11-29 Nokia Corporation An apparatus with an audio equalizer and associated method
CN105989782A (en) * 2015-03-23 2016-10-05 Lg电子株式会社 Stretchable display device and operating method thereof
CN106921802A (en) * 2017-03-17 2017-07-04 东软集团股份有限公司 The player method and device of voice data
CN110351407A (en) * 2019-08-08 2019-10-18 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal
CN110865758A (en) * 2019-10-29 2020-03-06 维沃移动通信有限公司 Display method and electronic equipment
CN110908759A (en) * 2019-11-19 2020-03-24 维沃移动通信有限公司 Display method and electronic equipment
CN111124179A (en) * 2019-12-20 2020-05-08 维沃移动通信有限公司 Information processing method and electronic equipment
CN111159983A (en) * 2019-12-31 2020-05-15 维沃移动通信有限公司 Editing method and electronic equipment

Also Published As

Publication number Publication date
CN112333336A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN112333336B (en) Audio editing method and device, electronic equipment and storage medium
US10770050B2 (en) Audio data processing method and apparatus
WO2014176959A1 (en) Method and device for providing input candidate entry based on local lexicon
KR20100028312A (en) Editing method for file of portable device and editing device using the same
JP6076418B2 (en) Electronic device and comic production method
CN113422872B (en) Control method and device of electronic equipment, electronic equipment and readable storage medium
KR20140028311A (en) Method for setting a selecting region and an electronic device thereof
CN111090408A (en) Display method and electronic equipment
WO2022048598A1 (en) Image acquisition method and apparatus, server and electronic device
CN103945301A (en) Audio system balance adjustment method and device
KR20150119834A (en) Method and apparatus for adjusting webpage and electronic device
CN103077075A (en) Method and terminal for displaying backgrounder application
AU2014201249A1 (en) Method for controlling display function and an electronic device thereof
CN113794832B (en) Video recording method, device, electronic device and storage medium
CN112015365A (en) Volume adjustment method and device and electronic equipment
CN111459374A (en) Interaction method and electronic equipment
CN110286827A (en) Element scaling control method, device, equipment and storage medium
WO2022143522A1 (en) Audio signal processing method and apparatus, and electronic device
CN104835512B (en) Based on voice recognition to control the method for music, system and its apparatus
CN104917474A (en) Audio amplifier module gain setting method and electronic device
CN112987090B (en) Surface wave dispersion curve pickup method and device
CN103338305A (en) Mobile phone and method for processing playing of audio file adopting same
CN114745583A (en) Screen control method and device and electronic equipment
WO2014071767A1 (en) Method and device for enlarging mobile application edit box based on event monitor
JPH06110642A (en) Sound output control method

Legal Events

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