CN107945777B - Audio production method, mobile terminal and computer readable storage medium - Google Patents

Audio production method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN107945777B
CN107945777B CN201711180504.6A CN201711180504A CN107945777B CN 107945777 B CN107945777 B CN 107945777B CN 201711180504 A CN201711180504 A CN 201711180504A CN 107945777 B CN107945777 B CN 107945777B
Authority
CN
China
Prior art keywords
audio
determining
pressure value
pressing
parameter
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
CN201711180504.6A
Other languages
Chinese (zh)
Other versions
CN107945777A (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 Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711180504.6A priority Critical patent/CN107945777B/en
Publication of CN107945777A publication Critical patent/CN107945777A/en
Application granted granted Critical
Publication of CN107945777B publication Critical patent/CN107945777B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an audio production method, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: acquiring attribute information of pressing operation on a display screen of the mobile terminal; determining corresponding audio parameters according to the attribute information; and generating audio data according to the audio parameters. The method is simple to operate and high in applicability.

Description

Audio production method, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an audio generation method, a mobile terminal, and a computer-readable storage medium.
Background
With the rapid development of mobile terminals, the application functions of the mobile terminals are increasing, and the mobile terminals provide much convenience for life and become an indispensable part of life gradually. Generally, a mobile terminal is provided with an audio player, and audio such as music and voice can be played through the audio player.
Currently, audio played by a mobile terminal through an audio player is generally obtained by downloading through a server or the like. Moreover, the audio is basically made by people with certain music professional skills or by musical instruments and the like, the audio making method is poor in applicability and cannot be generally applied to most people, and particularly for people with poor music professional skills, the existing audio making method cannot meet the requirements of the people.
Disclosure of Invention
The invention provides an audio making method, a mobile terminal and a computer readable storage medium, which aim to solve the problem of poor applicability of the existing audio making method.
In a first aspect, an embodiment of the present invention provides an audio production method, which is applied to a mobile terminal, where the method includes:
acquiring attribute information of pressing operation on a display screen of the mobile terminal;
determining corresponding audio parameters according to the attribute information;
generating audio data according to the audio parameters;
wherein the attribute information includes at least one of a pressing area, a pressure value, and a pressing duration of the pressing operation;
the audio parameter includes at least one of a volume, a pitch, a timbre, and an audio duration.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the acquisition module is used for acquiring attribute information of pressing operation on a display screen of the mobile terminal;
the determining module is used for determining corresponding audio parameters according to the attribute information;
the generating module is used for generating audio data according to the audio parameters;
wherein the attribute information includes at least one of a pressing area, a pressure value, and a pressing duration of the pressing operation;
the audio parameter includes at least one of a volume, a pitch, a timbre, and an audio duration.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the audio production method described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the audio production method as described above.
In the embodiment of the invention, the attribute information of the pressing operation of the display screen of the mobile terminal is acquired; determining corresponding audio parameters according to the attribute information; and audio data are generated according to the audio parameters, so that the operation is simple and the applicability is strong.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 shows one of the flow charts of the audio production method of the embodiment of the invention;
FIG. 2 is a second flowchart of an audio production method according to an embodiment of the invention;
FIG. 3 is a third flowchart of an audio production method according to an embodiment of the invention;
FIG. 4 is a fourth flowchart of an audio production method according to an embodiment of the invention;
FIG. 5 shows one of the block diagrams of a mobile terminal of an embodiment of the invention;
fig. 6 shows a second block diagram of a mobile terminal according to an embodiment of the invention;
fig. 7 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides an audio production method applied to a mobile terminal, where the method includes:
and 11, acquiring attribute information of the pressing operation of the display screen of the mobile terminal.
In this embodiment, the pressing operation may be a pressing operation input by the user for multiple times, or may be a pressing operation input by the user for a single time, where a pressing duration of the pressing operation exceeds a preset threshold. The attribute information includes at least one of a pressing area, a pressure value, and a pressing time period of the pressing operation.
Specifically, the pressing area is an area of a force-receiving area on a display screen of the mobile terminal when a pressing operation is applied to the display screen, for example: the operation areas of the single-finger pressing operation and the pressing operation of two or more fingers are different.
The press duration may be the duration of a single press operation, for example: detecting a pressing operation on a display screen of the mobile terminal at a first moment, and detecting that the pressing operation is terminated at a second moment (a force application object applied to the display screen is lifted from the display screen, or the pressure applied by the force application object is smaller than a preset threshold), and determining the pressing duration as the duration from the first moment to the second moment; the pressing time duration may also be a duration of each pressure value corresponding to the pressing operation, for example: and when the pressing operation is detected to be at a first pressure value at a first moment, and the pressing operation is detected to be switched from the first pressure value to a second pressure value at a second moment, determining the pressing duration of the first pressure value as the duration from the first moment to the second moment.
In a single pressing operation, the obtained pressure value of the pressing operation may be a fixed value, or may be at least two pressure values. For example: detecting a first pressure value corresponding to the pressing operation at a first pressing time point, detecting a second pressure value corresponding to the pressing operation at a second pressing time point after a period of time, and acquiring all pressure values corresponding to the pressing operation at different pressing time points until the pressing operation is terminated.
And step 12, determining corresponding audio parameters according to the attribute information.
In this embodiment, the audio parameter includes at least one of volume, pitch, timbre and audio duration.
As an implementation manner, the tone color in the audio parameter may be preset, or at least one of a plurality of preset tone colors may be determined according to a selection instruction input by a user. Specifically, the preset timbre may include a human voice timbre and an instrumental timbre. Such as: the human voice timbre includes: treble, mid-range, bass, etc.; the musical tone includes the tone of stringed instruments (koto, guitar, etc.), the tone of wind instruments (flute, trumpet, etc.), and the tone of percussion instruments (gong, drum, etc.).
Wherein, according to the attribute information, determining the corresponding audio parameter comprises: and respectively determining the volume, the tone and the audio time length of the audio parameters in a one-to-one correspondence manner according to the pressing area, the pressure value and the pressing time length of the pressing operation. For example: determining the volume of the audio parameter according to the pressing area of the pressing operation, determining the tone of the audio parameter according to the pressure value of the pressing operation, and determining the audio time of the audio parameter according to the pressing time of the pressing operation. It should be noted that, the specific example of determining the audio parameter according to the attribute information is given above, and other combinations may be adopted in addition, and the present invention is not limited thereto.
And step 13, generating audio data according to the audio parameters.
Specifically, the audio data is generated according to the volume, tone, timbre and audio duration of the audio parameter.
In the scheme, the attribute information of the pressing operation of the display screen of the mobile terminal is acquired; determining corresponding audio parameters according to the attribute information; and audio data are generated according to the audio parameters, so that the operation is simple and the applicability is strong.
Referring to fig. 2, an embodiment of the present invention further provides an audio production method, including:
and 21, acquiring at least two target pressure values acted on a display screen of the mobile terminal by pressing operation on the display screen.
Specifically, at least two target pressure values at different pressing moments of the pressing operation on the display screen are obtained, for example: detecting a first pressure value corresponding to the pressing operation at a first pressing time point, detecting a second pressure value corresponding to the pressing operation at a second pressing time point after a period of time, and acquiring all pressure values corresponding to the pressing operation at different pressing time points until the pressing operation is terminated (wherein all the pressure values at different pressing time points at least comprise two different pressure values).
And step 22, determining an audio parameter corresponding to each target pressure value according to a corresponding relation between preset pressure values and audio parameters.
As an implementation manner, the volume in the audio parameter may be determined according to the magnitude of the pressure value, such as: and determining the volume level corresponding to each target pressure value according to the corresponding relation between the preset pressure value and the volume level. Preferably, it may be set that the larger the pressure value, the higher the corresponding volume level.
As another implementation manner, the pitch in the audio parameter may also be determined according to the magnitude of the pressure value, such as: and determining the tone corresponding to each target pressure value according to the corresponding relation between the preset pressure value and the tone. Preferably, it can be set that the larger the pressure value, the higher the corresponding tone.
As another implementation manner, the audio duration in the audio parameter may also be determined according to the magnitude of the pressure value, such as: and determining the audio time corresponding to each target pressure value according to the corresponding relation between the preset pressure value and the audio time. Preferably, it can be set that the larger the pressure value is, the longer the corresponding audio time duration is.
Specifically, the step 22: determining an audio parameter corresponding to each target pressure value according to a corresponding relation between a preset pressure value and the audio parameter, specifically comprising:
and determining the pressure value division range in which each target pressure value is respectively positioned.
In this embodiment, a plurality of pressure value division ranges are preset, such as: the step size of each pressure value division range can be set to 0.5N or 1N or other predetermined values. And determining a pressure value division range corresponding to each pressure value according to a preset pressure value division range.
And determining the audio parameters corresponding to the pressure value division range in which each pressure value is located according to the corresponding relation between the preset pressure value division range and the audio parameters.
In this embodiment, the volume corresponding to the pressure value division range in which each target pressure value is located may be determined according to a preset correspondence relationship between the pressure value division range and the volume; or determining the tone corresponding to the pressure value division range in which each target pressure value is located according to the corresponding relation between the preset pressure value division range and the tone; and then or according to the corresponding relation between the preset pressure value division range and the audio time length, determining the audio time length corresponding to the pressure value division range in which each target pressure value is located.
And step 23, generating audio data according to the audio parameters.
In this embodiment, since the pressure value division ranges are set according to the predetermined step length, if the number of the at least two target pressure values corresponding to the pressing operation is N, the number of types of the pressure value division ranges corresponding to the N target pressure values may be M, where M is less than or equal to N, that is, the N pressure values correspond to M audio parameters of different types, thereby ensuring that the same and different audio parameters are continuously or alternately arranged, and generating an audio with a beat strength variation.
In the scheme, at least two target pressure values acted on the display screen by the pressing operation are obtained; determining an audio parameter corresponding to each target pressure value according to a corresponding relation between a preset pressure value and the audio parameter; and generating audio data according to the audio parameters. The audio making method in the scheme is simple to operate, the audio data can be generated according to the pressing operation input by the user, the user does not need to master the professional skill of music to make the audio, and therefore the audio making method is generally applicable to most people.
Referring to fig. 3, an embodiment of the present invention further provides an audio production method, including:
and step 31, acquiring a target pressing area acted on a display screen by the pressing operation of the display screen of the mobile terminal.
In this embodiment, the pressing operation is a pressing operation that is input by the user a plurality of times. For example: the method of displaying prompt information can be adopted to prompt a user to switch input pressing operation between a single finger and more than two fingers when the user inputs pressing operation for multiple times so as to obtain different target pressing areas acting on the display screen.
And step 32, determining the audio parameter corresponding to the target pressing area according to the corresponding relation between the preset pressing area and the audio parameter.
As an implementation, the volume in the audio parameter can be determined according to the size of the pressing area, such as: and determining the volume value corresponding to each target pressing area according to the corresponding relation between the preset pressing area and the volume level. Preferably, it may be set that the larger the pressing area is, the higher the corresponding sound volume level is.
As another implementation, the pitch in the audio parameter can also be determined according to the size of the pressing area, such as: and determining the tone corresponding to each target pressing area according to the corresponding relation between the preset pressing area and the tone. Preferably, it may be set that the larger the pressing area is, the higher the corresponding tone is.
As another implementation manner, the audio duration in the audio parameter may also be determined according to the size of the pressed area, such as: and determining the audio time length corresponding to each target pressing area according to the corresponding relation between the preset pressing area and the audio time length. Preferably, it may be set that the larger the pressing area is, the longer the corresponding audio time period is.
Specifically, the step 32: determining an audio parameter corresponding to each target pressure value according to a corresponding relation between a preset pressure value and the audio parameter, specifically comprising:
determining an area division range in which each target pressing area is located; and determining the audio parameters corresponding to the area division range in which each target pressing area is located according to the corresponding relation between the preset area division range and the audio parameters.
In this embodiment, the volume corresponding to the area division range in which each target pressing area is located may be determined according to a preset correspondence relationship between the area division range and the volume; or determining the tone corresponding to the area division range in which each target pressing area is located according to the corresponding relation between the preset area division range and the tone; and then or according to the corresponding relation between the preset area division range and the audio time length, determining the audio time length corresponding to the area division range where each pressing area is located.
And step 33, generating audio data according to the audio parameters.
In this embodiment, different audio parameters are determined according to the pressing operations of different pressing area values, so as to ensure that the same and different audio parameters are arranged continuously or at intervals, and generate audio with beat intensity variation.
In the scheme, the target pressing area acted on the display screen by the pressing operation of the display screen of the mobile terminal is obtained; determining an audio parameter corresponding to each target pressing area according to a corresponding relation between a preset pressing area and the audio parameter; and generating audio data according to the audio parameters. The audio frequency manufacturing method in the scheme is simple to operate and high in applicability.
Referring to fig. 4, an embodiment of the present invention further provides an audio production method, including:
step 41, obtaining a target pressing duration when a pressure value acting on the display screen is switched from a first pressure value to a second pressure value by pressing the display screen of the mobile terminal.
In this embodiment, if the pressing operation exceeding the display screen of the mobile terminal is detected, at least two pressure values at different pressing moments of the pressing operation are obtained, and the duration of each pressure value is recorded.
Specifically, if it is detected that the pressing operation is switched from a first pressure value at a first pressing time to a second pressure value at a second pressing time, recording the duration from the first pressing time to the second pressing time; and taking the duration as a target duration of the first pressure value.
And 42, determining an audio parameter corresponding to each target pressing time length according to the corresponding relation between the preset pressing time length and the audio parameter.
As an implementation manner, the volume in the audio parameter may be determined according to the length of the pressing duration, such as: and determining the volume level corresponding to each target pressing time length according to the corresponding relation between the preset pressing time length and the volume level. Preferably, it may be set that the larger the pressing time period is, the higher the corresponding volume level is.
As another implementation manner, the pitch in the audio parameter can also be determined according to the length of the pressing duration, such as: and determining the tone corresponding to each target pressing time length according to the corresponding relation between the preset pressing time length and the tone. Preferably, it can be set that the longer the compression period, the higher the corresponding tone.
As another implementation manner, the audio duration in the audio parameter may also be determined according to the length of the press duration, such as: and determining the audio time length corresponding to each target pressing time length according to the corresponding relation between the preset pressing time length and the audio time length. Preferably, it can be set that the longer the pressing time period is, the longer the corresponding audio time period is.
Specifically, the step 42: determining an audio parameter corresponding to each target pressing duration according to a corresponding relation between a preset pressing duration and the audio parameter, wherein the method specifically comprises the following steps:
determining a time division range in which each target pressing time is respectively located; and determining the audio parameters corresponding to the time length division range in which each target pressing time length is located according to the corresponding relation between the preset time length division range and the audio parameters.
In this embodiment, the volume corresponding to the duration division range in which each target pressing duration is located may be determined according to a preset correspondence between the duration division range and the volume; or determining the tone corresponding to the duration division range in which each target pressing duration is located according to the corresponding relation between the preset duration division range and the tone; and then or according to the corresponding relation between the preset duration division range and the audio duration, determining the audio duration corresponding to the duration division range in which each pressing duration is positioned.
And 43, generating audio data according to the audio parameters.
In this embodiment, different audio parameters are determined according to the pressing operations with different pressing duration values, so as to ensure that the same and different audio parameters are arranged continuously or at intervals, and generate audio with beat intensity variation.
In the scheme, by obtaining the pressing operation on the display screen of the mobile terminal, the target pressing duration when the pressure value acting on the display screen is switched from the first pressure value to the second pressure value is obtained; determining an audio parameter corresponding to each target pressing duration according to a corresponding relation between preset pressing durations and the audio parameters; and generating audio data according to the audio parameters. The audio frequency manufacturing method in the scheme is simple to operate and high in applicability.
Specifically, as a preferred embodiment, attribute information of a plurality of pressing operations on a display screen of the mobile terminal is acquired; each pressing operation corresponds to a target pressing area, a target pressure value and a target pressing duration respectively; and the target pressing area, the target pressure value and the target pressing duration can be average values in the pressing operation process.
The step of determining the audio parameter based on the audio property comprises: determining the volume corresponding to each target pressing area according to the corresponding relation between the preset pressing area and the volume; determining a tone corresponding to the target pressure value according to a corresponding relation between a preset pressure value and the tone; and determining the audio time corresponding to the target pressing time according to the corresponding relation between the preset pressing time and the audio time.
The volume, the tone and the audio duration respectively determined according to the attribute information of the pressing operation and the preset tone are used as an audio parameter. Taking the audio duration of the first audio parameter as an audio interval from the first audio parameter to the second audio parameter in the audio data generated according to the audio parameters, in the plurality of audio parameters determined according to the attribute information of the plurality of pressing operations; the first audio parameter is one of the audio parameters, and the second audio parameter is one of the audio parameters that is adjacent to the first audio parameter and is arranged after the first audio parameter in the audio data.
In addition, the audio duration of the first audio parameter may be used as an audio interval from the third audio parameter to the first audio parameter in the audio data generated according to the audio parameter. The third audio parameter is an audio parameter which is adjacent to the first audio parameter in the audio data and is arranged before the first audio parameter.
Of course, besides the above, the average value of the audio time durations of two adjacent audio parameters may also be used as the audio interval between the two audio parameters, which is not limited in the present invention.
Further, after the step of generating audio data according to the audio parameters in the above embodiments, corresponding musical notes may be determined according to each audio parameter, a staff animation may be drawn according to the musical notes corresponding to the audio parameters, and the generated audio data may be played through an audio player, so that a user can intuitively know the generated audio data.
In addition, after the audio data is generated according to the audio production method, at least one piece of audio data can be regenerated according to the audio production method, and the generated at least two pieces of audio data are synthesized to obtain the target audio data. Here, the synthesizing of the at least two pieces of audio data may be superimposing the two pieces of audio data, thereby obtaining target audio data with diversified rhythm elements; or splicing the two sections of audio data in sequence, or repeatedly splicing the same section of audio data, thereby prolonging the playing time of the audio data during playing and ensuring that a more complete section of audio is obtained.
Referring to fig. 5 and 6, an embodiment of the present invention provides a mobile terminal, where the mobile terminal 500 includes:
an obtaining module 510, configured to obtain attribute information of a pressing operation on a display screen of the mobile terminal.
The determining module 520 is configured to determine a corresponding audio parameter according to the attribute information.
A generating module 530, configured to generate audio data according to the audio parameter.
Wherein the attribute information includes at least one of a pressing area, a pressure value, and a pressing duration of the pressing operation.
The audio parameter includes at least one of a volume, a pitch, a timbre, and an audio duration.
Wherein the obtaining module 510 comprises:
a first acquiring unit 511, configured to acquire at least two target pressure values acting on the display screen by the pressing operation.
The determining module 520 includes:
the first determining unit 521 is configured to determine an audio parameter corresponding to each of the target pressure values according to a corresponding relationship between preset pressure values and the audio parameters.
Wherein the first determining unit 521 includes:
and the first determining subunit is used for determining the pressure value division range in which each target pressure value is respectively positioned.
And the second determining subunit is used for determining the audio parameters corresponding to the pressure value division range in which each target pressure value is located according to the corresponding relation between the preset pressure value division range and the audio parameters.
Wherein the obtaining module 510 comprises:
a second obtaining unit 512, configured to obtain a target pressing area on the display screen by the pressing operation.
The determining module 520 includes:
the second determining unit 522 is configured to determine, according to a preset correspondence between the pressing area and an audio parameter, an audio parameter corresponding to the target pressing area.
Wherein the obtaining module 510 comprises:
a third obtaining unit 513, configured to obtain a target pressing duration when the pressure value acting on the display screen by the pressing operation is switched from the first pressure value to the second pressure value.
The determining module 520 includes:
the third determining unit 523 is configured to determine, according to a corresponding relationship between preset pressing durations and audio parameters, an audio parameter corresponding to the target pressing duration.
In the mobile terminal 500 in the above scheme, attribute information of a pressing operation on a display screen of the mobile terminal is acquired; determining corresponding audio parameters according to the attribute information; and audio data are generated according to the audio parameters, so that the operation is simple and the applicability is strong.
Fig. 7 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to obtain attribute information of a pressing operation on a display screen of the mobile terminal; determining corresponding audio parameters according to the attribute information; generating audio data according to the audio parameters; wherein the attribute information includes at least one of a pressing area, a pressure value, and a pressing duration of the pressing operation; the audio parameter includes at least one of a volume, a pitch, a timbre, and an audio duration.
In the mobile terminal 700 in the above scheme, attribute information of a pressing operation on a display screen of the mobile terminal is acquired; determining corresponding audio parameters according to the attribute information; and generating audio data according to the audio parameters. The audio frequency manufacturing method in the scheme is simple to operate and high in applicability.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the mobile terminal 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 700 or may be used to transmit data between the mobile terminal 700 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the above-mentioned audio production method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned audio production method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. An audio making method applied to a mobile terminal is characterized by comprising the following steps:
acquiring attribute information of pressing operation on a display screen of the mobile terminal;
determining corresponding audio parameters according to the attribute information;
generating audio data according to the audio parameters;
wherein the attribute information includes at least one of a pressing area, a pressure value, and a pressing duration of the pressing operation;
the audio parameters comprise at least one of volume, tone, timbre and audio duration;
generating audio data according to the audio parameters comprises:
arranging the same and different audio parameters continuously or at intervals to generate audio data with beat strength variation;
wherein, the determining the corresponding audio parameter according to the attribute information includes:
determining a plurality of audio parameters according to the attribute information of the plurality of pressing operations;
the generating audio data according to the audio parameters further comprises:
taking the audio duration of the first audio parameter as an audio interval from the first audio parameter to the second audio parameter or an audio interval from the third audio parameter to the first audio parameter in the audio data generated according to the audio parameter; the first audio parameter is one of the audio parameters, the second audio parameter is one of the audio parameters that is adjacent to the first audio parameter and is arranged in the order after the first audio parameter, and the third audio parameter is one of the audio parameters that is adjacent to the first audio parameter and is arranged in the order before the first audio parameter.
2. The audio production method according to claim 1,
the step of acquiring attribute information of a pressing operation on a display screen of the mobile terminal includes:
acquiring at least two target pressure values acted on the display screen by the pressing operation;
the step of determining the corresponding audio parameter according to the attribute information includes:
and determining the audio parameter corresponding to each target pressure value according to the corresponding relation between the preset pressure value and the audio parameter.
3. The audio production method according to claim 2, wherein the step of determining the audio parameter corresponding to each of the target pressure values according to the corresponding relationship between the preset pressure values and the audio parameters comprises:
determining a pressure value division range in which each target pressure value is respectively located;
and determining the audio parameters corresponding to the pressure value division range in which each target pressure value is located according to the corresponding relation between the preset pressure value division range and the audio parameters.
4. The audio production method according to claim 1,
the step of acquiring attribute information of a pressing operation on a display screen of the mobile terminal includes:
acquiring a target pressing area acted on the display screen by the pressing operation;
the step of determining the corresponding audio parameter according to the attribute information includes:
and determining the audio parameter corresponding to the target pressing area according to the corresponding relation between the preset pressing area and the audio parameter.
5. The audio production method according to claim 1,
the step of acquiring attribute information of a pressing operation on a display screen of the mobile terminal includes:
acquiring a target pressing duration when the pressure value acted on the display screen by the pressing operation is switched from a first pressure value to a second pressure value;
the step of determining the corresponding audio parameter according to the attribute information includes:
and determining the audio parameters corresponding to the target pressing duration according to the corresponding relation between the preset pressing duration and the audio parameters.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the acquisition module is used for acquiring attribute information of pressing operation on a display screen of the mobile terminal;
the determining module is used for determining corresponding audio parameters according to the attribute information;
the generating module is used for generating audio data according to the audio parameters;
wherein the attribute information includes at least one of a pressing area, a pressure value, and a pressing duration of the pressing operation;
the audio parameters comprise at least one of volume, tone, timbre and audio duration;
the generation module is specifically configured to: arranging the same and different audio parameters continuously or at intervals to generate audio data with beat strength variation;
wherein the determining module is specifically configured to:
determining a plurality of audio parameters according to the attribute information of the plurality of pressing operations;
the generating module is further specifically configured to:
taking the audio duration of the first audio parameter as an audio interval from the first audio parameter to the second audio parameter or an audio interval from the third audio parameter to the first audio parameter in the audio data generated according to the audio parameter; the first audio parameter is one of the audio parameters, the second audio parameter is one of the audio parameters that is adjacent to the first audio parameter and is arranged in the order after the first audio parameter, and the third audio parameter is one of the audio parameters that is adjacent to the first audio parameter and is arranged in the order before the first audio parameter.
7. The mobile terminal of claim 6,
the acquisition module includes:
a first acquisition unit configured to acquire at least two target pressure values that the pressing operation acts on the display screen;
the determining module comprises:
the first determining unit is used for determining the audio parameter corresponding to each target pressure value according to the corresponding relation between the preset pressure value and the audio parameter.
8. The mobile terminal according to claim 7, wherein the first determining unit comprises:
the first determining subunit is used for determining a pressure value division range in which each target pressure value is respectively located;
and the second determining subunit is used for determining the audio parameters corresponding to the pressure value division range in which each target pressure value is located according to the corresponding relation between the preset pressure value division range and the audio parameters.
9. The mobile terminal of claim 6,
the acquisition module includes:
a second acquisition unit configured to acquire a target pressing area on the display screen by the pressing operation;
the determining module comprises:
and the second determining unit is used for determining the audio parameter corresponding to the target pressing area according to the corresponding relation between the preset pressing area and the audio parameter.
10. The mobile terminal of claim 6,
the acquisition module includes:
a third obtaining unit, configured to obtain a target pressing duration when a pressure value acting on the display screen by the pressing operation is switched from a first pressure value to a second pressure value;
the determining module comprises:
and the third determining unit is used for determining the audio parameters corresponding to the target pressing duration according to the corresponding relation between the preset pressing duration and the audio parameters.
11. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the audio production method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the audio production method as claimed in any one of the claims 1 to 5.
CN201711180504.6A 2017-11-23 2017-11-23 Audio production method, mobile terminal and computer readable storage medium Active CN107945777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711180504.6A CN107945777B (en) 2017-11-23 2017-11-23 Audio production method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711180504.6A CN107945777B (en) 2017-11-23 2017-11-23 Audio production method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107945777A CN107945777A (en) 2018-04-20
CN107945777B true CN107945777B (en) 2020-09-22

Family

ID=61930898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711180504.6A Active CN107945777B (en) 2017-11-23 2017-11-23 Audio production method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107945777B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708420A (en) * 2019-09-19 2020-01-17 维沃移动通信有限公司 Voice message processing method and mobile terminal
CN111081204A (en) * 2019-11-26 2020-04-28 韩冰 Electronic musical instrument, control method thereof, and computer-readable medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441548B (en) * 2008-11-24 2010-09-08 宇龙计算机通信科技(深圳)有限公司 Touch screen processing method, system and mobile terminal
KR20150013991A (en) * 2013-07-25 2015-02-06 삼성전자주식회사 Method and apparatus for executing application in electronic device
CN104866094B (en) * 2015-05-11 2018-12-11 广东欧珀移动通信有限公司 The control method of terminal and terminal
CN105430190A (en) * 2015-12-16 2016-03-23 广东欧珀移动通信有限公司 Scene mode setting method and device
CN106920562A (en) * 2015-12-24 2017-07-04 中兴通讯股份有限公司 A kind of control method for playing back, device and terminal
CN106445385B (en) * 2016-09-28 2019-09-10 依偎科技(南昌)有限公司 A kind of starting method and device of function

Also Published As

Publication number Publication date
CN107945777A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN109343759B (en) Screen-turning display control method and terminal
CN109256146B (en) Audio detection method, device and storage medium
CN108347529B (en) Audio playing method and mobile terminal
CN110097872B (en) Audio processing method and electronic equipment
CN108319445B (en) Audio playing method and mobile terminal
CN107743178B (en) Message playing method and mobile terminal
CN110568926B (en) Sound signal processing method and terminal equipment
CN108668024B (en) Voice processing method and terminal
CN107748640B (en) Screen-off display method and mobile terminal
CN111010608B (en) Video playing method and electronic equipment
CN110012143B (en) Telephone receiver control method and terminal
CN108735194B (en) Beat prompting method and device
CN111026305A (en) Audio processing method and electronic equipment
CN110796918A (en) Training method and device and mobile terminal
CN110808019A (en) Song generation method and electronic equipment
CN107749306B (en) Vibration optimization method and mobile terminal
CN107945777B (en) Audio production method, mobile terminal and computer readable storage medium
CN110677770B (en) Sound production control method, electronic device, and medium
CN108418961B (en) Audio playing method and mobile terminal
CN111445929A (en) Voice information processing method and electronic equipment
CN111103983A (en) AR musical instrument playing method and electronic equipment
CN108108338B (en) Lyric processing method, lyric display method, server and mobile terminal
CN110460720A (en) A kind of screen color adjusting method and electronic equipment electronic equipment
CN107835310B (en) Mobile terminal setting method and mobile terminal
CN110213431B (en) Message sending method and mobile terminal

Legal Events

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