CN112379857A - Audio data processing method and device, storage medium and mobile terminal - Google Patents

Audio data processing method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112379857A
CN112379857A CN202011329580.0A CN202011329580A CN112379857A CN 112379857 A CN112379857 A CN 112379857A CN 202011329580 A CN202011329580 A CN 202011329580A CN 112379857 A CN112379857 A CN 112379857A
Authority
CN
China
Prior art keywords
audio
segmented
data
audio data
mobile terminal
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.)
Granted
Application number
CN202011329580.0A
Other languages
Chinese (zh)
Other versions
CN112379857B (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.)
Foshan Huayue Intellectual Property Operation Co ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202011329580.0A priority Critical patent/CN112379857B/en
Publication of CN112379857A publication Critical patent/CN112379857A/en
Application granted granted Critical
Publication of CN112379857B publication Critical patent/CN112379857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the technical field of communication, and discloses an audio data processing method, an audio data processing device, a storage medium and a mobile terminal. The method is applied to the mobile terminal and comprises the following steps: carrying out segmentation processing on the audio to be processed to obtain a plurality of segments of segmented audio; confirming that the audio category of the segmented audio is a first audio or a second audio; when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio; and carrying out corresponding data transmission and playing processing on the segmented audio according to the audio type. Wherein the audio data of the second audio is data of a difference portion compared with the last segmented audio. By the method provided by the invention, the same audio data is prevented from being repeatedly transmitted in the audio data transmission process, so that the unnecessary energy consumption of the mobile terminal is reduced.

Description

Audio data processing method and device, storage medium and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to an audio data processing method, an audio data processing device, a storage medium and a mobile terminal.
Background
With the development of mobile communication technology, mobile terminals such as mobile phones and tablet computers are increasingly applied to life, study and work of people. The functions of the mobile terminal tend to be diversified, and besides the basic call function, the functions also include more entertainment functions, such as online video, online games, music playing and the like.
In the process of playing music by the conventional mobile terminal, complete audio data needs to be transmitted to an audio chip for playing, so that a large amount of audio data needs to be transmitted, and part of the same data is repeatedly transmitted, thereby causing unnecessary energy consumption of the mobile terminal.
Disclosure of Invention
The invention provides an audio data processing method, an audio data processing device, a storage medium and a mobile terminal, which can avoid the repeated transmission of the same audio data in the audio data transmission process, thereby reducing the unnecessary energy consumption of the mobile terminal.
The invention provides an audio data processing method, which is applied to a mobile terminal and comprises the following steps:
carrying out segmentation processing on the audio to be processed to obtain a plurality of segments of segmented audio;
confirming that the audio category of the segmented audio is a first audio or a second audio; when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio;
and carrying out corresponding data transmission and playing processing on the segmented audio according to the audio type.
Preferably, the data capacity of each of the segmented audios is the same.
Preferably, in the step of performing segmentation processing on the audio to be processed to obtain a plurality of segments of segmented audio, a first segment of the segmented audio obtained by the segmentation processing is a first audio.
Preferably, each of the segmented audios includes a plurality of small segments of audio data, and each of the small segments of audio data corresponds to a region position mark;
the segmented audio includes:
region position 1: audio data 1 of region position 1;
region position 2: audio data 2 of region position 2;
region position 3: audio data 3 of region position 3;
……;
region position X: audio data X for region location X;
wherein, X is 1, 2, 3, … …, N is positive integer.
Preferably, when the segmented audio is a second audio, the audio data of the second audio is: data corresponding to a different portion of each of several small segments of audio data as compared to the last described segmented audio.
Preferably, the step of performing corresponding data transmission and playing processing on the segmented audio according to the audio type includes:
when the segmented audio is the first audio, transmitting all audio data included in the segmented audio, and playing the audio;
and when the segmented audio is a second audio, transmitting audio data of the second audio, acquiring the region position, integrating the audio data corresponding to the region position to a corresponding position in the last segmented audio, and playing the segmented audio after the integration is finished.
The invention also provides an audio data processing device, which is applied to a mobile terminal and comprises:
the acquisition module is used for carrying out segmentation processing on the audio to be processed to obtain a plurality of segments of segmented audio;
the classification module is used for confirming that the audio type of the segmented audio is a first audio or a second audio; when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio;
and the processing module is used for carrying out corresponding data transmission and playing processing on the segmented audio according to the audio type.
Preferably, the processing module comprises:
the first processing module is used for transmitting all audio data included in the segmented audio and playing the audio data when the segmented audio is the first audio;
and the second processing module is used for transmitting the audio data of the second audio when the segmented audio is the second audio, acquiring the region position, integrating the audio data corresponding to the region position to the corresponding position in the last segmented audio, and playing the segmented audio after the integration is finished.
The invention also provides a computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the audio data processing method of any of the above.
The invention also provides a mobile terminal, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the audio data processing method.
According to the audio data processing method, the audio data processing device, the storage medium and the mobile terminal, the audio to be processed is subjected to segmentation processing to obtain multi-segment segmented audio; confirming that the audio category of the segmented audio is a first audio or a second audio; when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio; and carrying out corresponding data transmission and playing processing on the segmented audio according to the audio type. Wherein the audio data of the second audio is data of a difference portion compared with the last segmented audio. By the method provided by the invention, the same audio data is prevented from being repeatedly transmitted in the audio data transmission process, so that the unnecessary energy consumption of the mobile terminal is reduced.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 2 is another schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an audio data processing method according to an embodiment of the invention;
FIG. 4 is a schematic diagram illustrating the composition of a segmented audio according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an audio data processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. In the drawings, elements having similar structures are denoted by the same reference numerals. 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.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The embodiment of the invention aims at solving the problem that all audio data are required to be transmitted to an audio chip for playing in the music playing process of the existing mobile terminal, so that part of the same audio data are transmitted repeatedly, and unnecessary energy consumption of the mobile terminal is caused.
The embodiment of the invention provides a mobile terminal which can be a smart phone or a tablet computer and the like. As shown in fig. 1, the mobile terminal 100 includes a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102.
The processor 101 is a control center of the mobile terminal 100, 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 running or loading an application program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 101 in the mobile terminal 100 loads instructions corresponding to processes of one or more application programs into the memory 102, and the processor 101 runs the application programs stored in the memory 102, so as to implement various functions, such as an audio data processing method, as follows:
carrying out segmentation processing on the audio to be processed to obtain a plurality of segments of segmented audio;
confirming that the audio category of the segmented audio is a first audio or a second audio; when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio;
and carrying out corresponding data transmission and playing processing on the segmented audio according to the audio type.
The mobile terminal 100 may implement any of the steps of the audio data processing method.
Fig. 2 is a block diagram illustrating a specific structure of the mobile terminal 100 according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 100 may include Radio Frequency (RF) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170 (e.g., Wireless Fidelity (WiFi), a Wireless Fidelity (wi-fi)), a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 2 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 120 may be configured to store a software program and a module, such as the program instructions corresponding to the audio data processing method, and the processor 180 executes various functional applications and data processing by operating the software program and the module stored in the memory 120, that is, to achieve functions of acquiring a frequency of an information transmission signal to be transmitted by the mobile terminal 100, generating an interference signal, and the like. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the mobile terminal 100 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means 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 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the mobile terminal 100, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in the figures touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 100, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 100.
The mobile terminal 100, which can assist the user in receiving requests, transmitting information, etc., through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 170 is shown in the drawings, it is understood that it does not belong to the essential constitution of the mobile terminal 100 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile terminal. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 100 may also include a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions in some embodiments. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 100 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, a flashlight, and the like, which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal 100 is a touch screen display, and the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
carrying out segmentation processing on the audio to be processed to obtain a plurality of segments of segmented audio;
confirming that the audio category of the segmented audio is a first audio or a second audio; when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio;
and carrying out corresponding data transmission and playing processing on the segmented audio according to the audio type.
In order to better use the mobile terminal 100, so that the same audio data is reduced from being repeatedly transmitted when the mobile terminal 100 plays music, thereby reducing unnecessary energy consumption of the mobile terminal, and improving the cruising ability of the mobile terminal 100, thereby obtaining better user experience, an embodiment of the present invention further provides an audio data processing method applied to the mobile terminal 100. The schematic flow chart of the audio data processing method is shown in fig. 3, and the specific steps are as follows:
step S101, carrying out segmentation processing on the audio to be processed to obtain a plurality of segments of segmented audio;
in the process of playing music by the mobile terminal 100, audio data corresponding to a certain song generally needs to be cached, so as to obtain the audio to be processed. And then, carrying out segmentation processing on the audio to be processed to obtain a plurality of segments of the segmented audio.
In order to make the segmentation process simpler and faster, the audio to be processed can be equally segmented, so that the data capacity of each segmented audio obtained after segmentation is the same.
Step S102, confirming that the audio type of the segmented audio is a first audio or a second audio; when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio;
after the segmentation processing in step S101, the format of each of the segmented audios obtained may be composed of the following three parts:
a segment head: and (3) segmented packing: and (5) segmenting the tail.
Wherein, ": "is used merely as a separation between the various parts to make the content of each part clearer and has no specific meaning.
Further, a segment header for identifying a beginning of the segmented audio;
the segmented packet is data to be transmitted by the segmented audio;
a segment trailer for identifying an end of the segmented audio.
In a specific embodiment, the segment header and the segment packet may be represented by a double vertical line as a mark for the start and end of a segment of the segmented audio.
Specifically, the format of the segment packet in the segmented audio may specifically be as follows:
audio type: audio data.
Wherein the audio category is used to identify the segmented audio as a first audio or a second audio;
": "merely as a separation between two parts, to make the content of the parts clearer and without any specific meaning.
Therefore, after the segmented audio is obtained through the segmentation processing, the audio type of the segmented audio is confirmed, and the segmented audio can be known to be the first audio or the second audio.
Preferably, in this embodiment of the present invention, the classification criteria of the first audio and the second audio are: when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio.
In one embodiment, the set threshold may have a value of 80%. When the difference between the current segmented audio and the last segmented audio exceeds 80%, the current segmented audio is the first audio; otherwise, when the difference value between the two is less than or equal to 80%, the segmented audio is the second audio. For example, when the audio data of a song is segmented into 3 segments of segmented audio, when the ratio of the lyrics and/or melody of the second segment of segmented audio to the difference of the first segment of segmented audio reaches 80% or more, the second segment of segmented audio may be regarded as the first audio; and when the ratio of the difference part of the lyrics and/or melody of the second section of the segmented audio compared with the first section of the segmented audio is less than or equal to 80%, the second section of the segmented audio is regarded as the second audio.
Therefore, in step S101, after the audio to be processed is segmented to obtain a plurality of segments of the segmented audio, a first segment of the segmented audio obtained by the segmentation processing must be a first audio.
Further, when data transmission is performed, for the first audio, the transmitted data is all audio data included in the segmented audio. And for the second audio, the transmitted data is only a portion of the audio data included in the segmented audio.
Based on this, in this embodiment, each of the segmented audios may include a plurality of small segments of audio data, and each of the small segments of audio data corresponds to one of the region position markers.
Specifically, as shown in fig. 4, the audio data of the segmented audio includes:
region position 1: audio data 1 of region position 1;
region position 2: audio data 2 of region position 2;
region position 3: audio data 3 of region position 3;
……;
region position X: audio data X for region location X;
wherein, X is 1, 2, 3, … …, N is positive integer.
That is, any one of the segmented audios may be divided into X small pieces of audio data as needed.
Further, when the segmented audio is a second audio, the audio data of the second audio is: data corresponding to a different portion of each of several small segments of audio data as compared to the last described segmented audio.
Specifically, when the segmented audio is the second audio, the audio data of the second audio will no longer be all the audio data included in the segmented audio, but data corresponding to different portions of several small pieces of audio data compared to the last segmented audio. For example, when the audio data of the previous segmented audio is divided into 3 segments of audio data, the audio data of the second audio, that is, the data to be transmitted, is:
region position 1: difference audio data 1 of region position 1;
region position 2: difference audio data 2 of region position 2;
region position 3: difference audio data 3 at region position 3.
The audio data of the segmented audio is further divided to obtain a plurality of small segments of audio data, and when the segmented audio is the first audio, all the audio data included in the segmented audio is transmitted; and when the segmented audio is the second audio, only the data of the difference part compared with the last segmented audio is transmitted. Further, the audio data of the segmented audio is divided, so that the region position of the difference data can be accurately positioned, and when the audio data of the second audio is transmitted, repeated transmission of the same audio data can be reduced, meanwhile, the characteristic audio data of each segmented audio, namely the difference audio data, can be transmitted, the loss of the audio data is avoided, and therefore, unnecessary energy consumption of the mobile terminal 100 is reduced, and energy saving is facilitated.
It can be understood that, if there is no difference between the current segment audio and the previous segment audio, the current segment audio is the second audio, and the audio data of the second audio, that is, the data to be transmitted, is empty.
And S103, carrying out corresponding data transmission and playing processing on the segmented audio according to the audio type.
Specifically, when the segmented audio is a first audio, transmitting all audio data included in the segmented audio, and playing the audio data; and when the segmented audio is a second audio, transmitting audio data of the second audio, acquiring the region position, integrating the audio data corresponding to the region position to a corresponding position in the last segmented audio, and playing the segmented audio after the integration is finished.
And for the first audio, playing the first audio after the data transmission is finished. And for the second audio, after the data transmission is completed, sequentially acquiring each region position included in the audio data of the second audio, sequentially integrating the audio data corresponding to each region position to each corresponding position in the previous segmented audio, and playing the segmented audio after the integration is finished. Where integration can be understood as: replacement of part of the audio data, insertion of part of the audio data, and deletion of part of the audio data, etc.
Further, when two adjacent segments of the segmented audio are the second audio, after the transmission of the previous second audio is finished and the integration and playing are finished, further division is immediately performed, that is, the audio data obtained by integration is divided into a plurality of small segments of audio data, and the audio data of the next second audio, that is, the data to be transmitted is the data corresponding to the difference portion of the small segments of audio data.
After the confirmation, data transmission, integration and playing processing are performed on each segmented audio segment by segment, the audio processing to be processed is finished, and for a song, the playing can be understood as being finished.
In the method provided by the embodiment of the invention, a plurality of segments of segmented audio are obtained by segmenting the audio to be processed, then the category of each segmented audio is confirmed to be determined as a first audio or a second audio, and the audio data of each segmented audio is further divided to obtain a plurality of small segments of audio data; for the first audio, the audio data to be transmitted is all audio data included in the segmented audio, and for the second audio, the audio data to be transmitted is data corresponding to different parts of a plurality of small segments of audio data compared with the last segmented audio; after the data transmission is finished, the integration and the playing processing are carried out, so that the repeated transmission of the same audio data is reduced in the data transmission process, meanwhile, the characteristic audio data of each segmented audio, namely the difference audio data, can be ensured to be transmitted, the loss of the audio data is avoided, the unnecessary energy consumption of the mobile terminal 100 is reduced, and the energy saving is facilitated.
In order to better implement the audio data processing method, the embodiment of the present invention will be further described from the perspective of an audio data processing device, where the audio data processing device may be specifically implemented as an independent entity, and may also be integrated in the mobile terminal 100 provided in the embodiment of the present invention, and the mobile terminal 100 may include a mobile phone, a tablet computer, and the like.
As shown in fig. 5, fig. 5 is a block diagram of an audio data processing apparatus according to an embodiment of the present invention, applied to a mobile terminal 100, where the audio data processing apparatus may include:
the acquiring module 201 is configured to perform segmentation processing on the audio to be processed to obtain a plurality of segments of segmented audio;
a classification module 202, configured to determine that the audio type of the segmented audio is a first audio or a second audio; when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio;
the processing module 203 is configured to perform corresponding data transmission and playing processing on the segmented audio according to the audio type.
Further, the processing module 203 is further configured to further divide the audio data of each segmented audio to obtain a plurality of small segments of audio data, where each small segment of audio data corresponds to one region position mark. When data transmission is performed, for the first audio, the transmitted data is all audio data included in the segmented audio. While for the second audio, the transmitted data is only part of the audio data included in the segmented audio, i.e., data corresponding to the different portions of the several small segments of audio data as compared to the last of the segmented audio.
Specifically, the processing module 203 may further include:
a first processing module 2031, configured to transmit and play all audio data included in the segmented audio when the segmented audio is a first audio;
the second processing module 2032 is configured to, when the segmented audio is a second audio, transmit audio data of the second audio, acquire the region position, integrate the audio data corresponding to the region position to a corresponding position in the previous segmented audio, and play the segmented audio after the integration is finished.
Further, the audio data processing apparatus may further include:
the buffer module 204 is configured to buffer the audio to be processed.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily, and implemented as the same or a plurality of entities, where the specific implementation of the above modules may refer to the foregoing method embodiment, and specific beneficial effects that can be achieved may also refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the audio data processing method may be performed by instructions or related hardware controlled by the instructions, and the instructions may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention further provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute any step of the audio data processing method described above.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute any step in the audio data processing method, the beneficial effects that can be achieved by the audio data processing method provided by the embodiment of the present invention can be achieved, which are detailed in the foregoing content and will not be described herein again.
The audio data processing method, the audio data processing apparatus, the storage medium, and the mobile terminal provided in the embodiments of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the technical solution and the core idea of the present invention; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An audio data processing method applied to a mobile terminal is characterized by comprising the following steps:
carrying out segmentation processing on the audio to be processed to obtain a plurality of segments of segmented audio;
confirming that the audio category of the segmented audio is a first audio or a second audio; when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio;
and carrying out corresponding data transmission and playing processing on the segmented audio according to the audio type.
2. The audio data processing method of claim 1, wherein the data capacity of each of the segmented audios is the same.
3. The audio data processing method of claim 1, wherein in the step of segmenting the audio to be processed to obtain a plurality of segments of segmented audio, a first segment of the segmented audio obtained by the segmentation processing is a first audio.
4. The audio data processing method of claim 1, wherein each of the segmented audios includes a plurality of small segments of audio data, each of the small segments of audio data corresponding to a region position marker;
the segmented audio includes:
region position 1: audio data 1 of region position 1;
region position 2: audio data 2 of region position 2;
region position 3: audio data 3 of region position 3;
……;
region position X: audio data X for region location X;
wherein, X is 1, 2, 3, … …, N is positive integer.
5. The audio data processing method according to claim 4, wherein when the segmented audio is a second audio, the audio data of the second audio is: data corresponding to a different portion of each of several small segments of audio data as compared to the last described segmented audio.
6. The audio data processing method of claim 5, wherein the step of performing corresponding data transmission and playback processing on the segmented audio according to the audio category comprises:
when the segmented audio is the first audio, transmitting all audio data included in the segmented audio, and playing the audio;
and when the segmented audio is a second audio, transmitting audio data of the second audio, acquiring the region position, integrating the audio data corresponding to the region position to a corresponding position in the last segmented audio, and playing the segmented audio after the integration is finished.
7. An audio data processing device applied to a mobile terminal, comprising:
the acquisition module is used for carrying out segmentation processing on the audio to be processed to obtain a plurality of segments of segmented audio;
the classification module is used for confirming that the audio type of the segmented audio is a first audio or a second audio; when the difference value between the current segmented audio and the last segmented audio exceeds a set threshold, the current segmented audio is the first audio, and otherwise, the current segmented audio is the second audio;
and the processing module is used for carrying out corresponding data transmission and playing processing on the segmented audio according to the audio type.
8. The audio data processing device of claim 7, wherein the processing module comprises:
the first processing module is used for transmitting all audio data included in the segmented audio and playing the audio data when the segmented audio is the first audio;
and the second processing module is used for transmitting the audio data of the second audio when the segmented audio is the second audio, acquiring the region position, integrating the audio data corresponding to the region position to the corresponding position in the last segmented audio, and playing the segmented audio after the integration is finished.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the audio data processing method of any of claims 1 to 6.
10. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the audio data processing method according to any one of claims 1 to 6.
CN202011329580.0A 2020-11-24 2020-11-24 Audio data processing method and device, storage medium and mobile terminal Active CN112379857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011329580.0A CN112379857B (en) 2020-11-24 2020-11-24 Audio data processing method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011329580.0A CN112379857B (en) 2020-11-24 2020-11-24 Audio data processing method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112379857A true CN112379857A (en) 2021-02-19
CN112379857B CN112379857B (en) 2022-01-04

Family

ID=74587659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011329580.0A Active CN112379857B (en) 2020-11-24 2020-11-24 Audio data processing method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112379857B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097269A1 (en) * 2001-10-25 2003-05-22 Canon Kabushiki Kaisha Audio segmentation with the bayesian information criterion
JP4125990B2 (en) * 2003-05-01 2008-07-30 日本電信電話株式会社 Search result use type similar music search device, search result use type similar music search processing method, search result use type similar music search program, and recording medium for the program
CN101548257A (en) * 2006-10-23 2009-09-30 奥多比公司 Methods and apparatus for representing audio data
CN102110458A (en) * 2009-12-24 2011-06-29 Tcl集团股份有限公司 Playing terminal as well as method and device for playing an audio/video file
CN103886863A (en) * 2012-12-20 2014-06-25 杜比实验室特许公司 Audio processing device and audio processing method
CN105786441A (en) * 2016-01-29 2016-07-20 腾讯科技(深圳)有限公司 Audio processing method, server, user equipment and system
US9414010B2 (en) * 2007-03-20 2016-08-09 At&T Intellectual Property I, L.P. Systems and methods of providing modified media content
US20160323343A1 (en) * 2015-04-28 2016-11-03 Apple Inc. Dynamic Media Content
US9977489B2 (en) * 2013-03-15 2018-05-22 West Virginia University Compressed sampling and memory
CN111524529A (en) * 2020-04-15 2020-08-11 广州极飞科技有限公司 Audio data processing method, device and system, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097269A1 (en) * 2001-10-25 2003-05-22 Canon Kabushiki Kaisha Audio segmentation with the bayesian information criterion
JP4125990B2 (en) * 2003-05-01 2008-07-30 日本電信電話株式会社 Search result use type similar music search device, search result use type similar music search processing method, search result use type similar music search program, and recording medium for the program
CN101548257A (en) * 2006-10-23 2009-09-30 奥多比公司 Methods and apparatus for representing audio data
US9414010B2 (en) * 2007-03-20 2016-08-09 At&T Intellectual Property I, L.P. Systems and methods of providing modified media content
CN102110458A (en) * 2009-12-24 2011-06-29 Tcl集团股份有限公司 Playing terminal as well as method and device for playing an audio/video file
CN103886863A (en) * 2012-12-20 2014-06-25 杜比实验室特许公司 Audio processing device and audio processing method
US9977489B2 (en) * 2013-03-15 2018-05-22 West Virginia University Compressed sampling and memory
US20160323343A1 (en) * 2015-04-28 2016-11-03 Apple Inc. Dynamic Media Content
CN105786441A (en) * 2016-01-29 2016-07-20 腾讯科技(深圳)有限公司 Audio processing method, server, user equipment and system
CN111524529A (en) * 2020-04-15 2020-08-11 广州极飞科技有限公司 Audio data processing method, device and system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112379857B (en) 2022-01-04

Similar Documents

Publication Publication Date Title
US20180342231A1 (en) Sound effect parameter adjustment method, mobile terminal and storage medium
CN107507628B (en) Singing scoring method, singing scoring device and terminal
US9977651B2 (en) Mobile terminal and image processing method thereof
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN109243488B (en) Audio detection method, device and storage medium
CN111008090B (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN108492837B (en) Method, device and storage medium for detecting audio burst white noise
US10853092B2 (en) Method and device for sound effect processing
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN110489177B (en) Application control method and device, storage medium and terminal equipment
CN112379857B (en) Audio data processing method and device, storage medium and mobile terminal
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN112367425B (en) Volume adjusting method and device and terminal
CN111143580B (en) Multimedia data storage method and device, storage medium and electronic equipment
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN110191503B (en) Audio playing method, system, storage medium and mobile terminal
US11259222B2 (en) Mobile terminal and method and system for switching and controlling call link of mobile terminal
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal
CN111309223A (en) Application function starting method and device, storage medium and mobile terminal
CN112256610B (en) Connection control method, system, storage medium and mobile terminal
CN112256197B (en) Management method, device and equipment for storage information and storage medium
CN111405649B (en) Information transmission method and device and mobile terminal
CN113364910B (en) Signal processing method, device, equipment and storage medium
CN109561481B (en) Data sending method, terminal and storage medium

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
TR01 Transfer of patent right

Effective date of registration: 20230718

Address after: Room 2103, Office Building 1, No. 213 Funing Road, Zumiao Street, Chancheng District, Foshan City, Guangdong Province, 528000, F008

Patentee after: Foshan Huayue Intellectual Property Operation Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right