Audio data processing method and device, terminal equipment and storage medium

By optimizing and encoding the audio data to be processed twice, the problem of Bluetooth transmission delay is solved, and a smaller amount of data and a more stable transmission effect is achieved.

CN119068882APending Publication Date: 2024-12-03SHENZHEN TCL DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411320068.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the scenario where multiple Bluetooth communication protocols coexist, there is a problem of delay in Bluetooth transmission, which affects the stability of data flow.

Method used

By obtaining the audio data to be processed, two data size optimizations are performed, first reduce the audio data to be processed, and then further optimize the encoded audio data to obtain target audio data with a smaller amount of data, thereby alleviating the Bluetooth audio data transmission process delay problem in.

Benefits of technology

Effectively reduces the delay in Bluetooth audio data transmission and improves the stability and efficiency of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068882A_ABST
    Figure CN119068882A_ABST
Patent Text Reader

Abstract

The invention provides an audio data processing method and apparatus, a terminal device and a storage medium. The method comprises the steps of obtaining to-be-processed audio data; the data size of the to-be-processed audio data is optimized to obtain initial target audio data, and the data size of the initial target audio data is smaller than the data size of the to-be-processed audio data; encoding the initial target audio data to obtain encoded audio data; and the data size of the coded audio data is optimized to obtain target audio data, and the data size of the target audio data is smaller than that of the coded audio data. According to the method, the to-be-processed audio data can be successively subjected to data size optimization twice, so that the quantity of the to-be-processed audio data is reduced. After the data volume of the audio data is optimized twice, the delay problem in the Bluetooth audio data transmission process can be effectively relieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an audio data processing method, apparatus, terminal device and storage medium. Background Art

[0002] With the development of wireless technology, Bluetooth has become the mainstream wireless communication device today. Among Bluetooth communication devices, the Bluetooth communication laundry used in the industry is diverse, so as to meet the application scenarios of different Bluetooth devices. For example: to meet the one-to-many Bluetooth transmission scenario, so as not to limit the number of receivers, especially involving airports, stations, large shopping malls, cinemas and other scenes with a large number of people.

[0003] However, in the prior art, Bluetooth transmission has the following problem: if a scenario involves multiple Bluetooth communication protocols, that is, a scenario where Bluetooth broadcasts coexist, there will be a delay in the broadcast data stream. Therefore, this problem needs to be solved. Summary of the invention

[0004] The present application provides an audio data processing method that can reduce the delay problem in Bluetooth communication.

[0005] In a first aspect, the present application provides an audio data processing method, the method comprising:

[0006] Get the audio data to be processed;

[0007] Optimizing the data size of the audio data to be processed to obtain initial target audio data, wherein the data size of the initial target audio data is smaller than the data size of the audio data to be processed;

[0008] Encoding the initial target audio data to obtain encoded audio data;

[0009] The data size of the encoded audio data is optimized to obtain target audio data, wherein the data size of the target audio data is smaller than the data size of the encoded audio data.

[0010] In some embodiments of the present application, the step of obtaining the audio data to be processed includes:

[0011] Get the application audio data of the target application;

[0012] Performing a first sampling on the application audio data to obtain first sampled audio data;

[0013] The first sampled audio data is input into a target buffer area to obtain audio data to be processed.

[0014] In some embodiments of the present application, optimizing the data size of the audio data to be processed to obtain initial target audio data includes:

[0015] Determine a first sampling data size of unit sampling data of the audio data to be processed;

[0016] The size of the first sampling data is reduced to obtain initial target audio data.

[0017] In some embodiments of the present application, optimizing the data size of the audio data to be processed to obtain initial target audio data includes:

[0018] Determine a second sampling data size of the overall sampling data of the audio data to be processed;

[0019] The second sampling data size is increased to obtain initial target audio data.

[0020] In some embodiments of the present application, optimizing the data size of the encoded audio data to obtain target audio data includes:

[0021] Determine a third sampling data size of the unit sampling data of the encoded audio data;

[0022] The third sampling data size is reduced to obtain target audio data.

[0023] In some embodiments of the present application, optimizing the data size of the encoded audio data to obtain target audio data includes:

[0024] Determining a fourth sampling data size of the overall sampling data of the encoded audio data;

[0025] The fourth sampling data size is increased to obtain target audio data.

[0026] In some embodiments of the present application, after optimizing the data size of the encoded audio data to obtain the target audio data, the method further includes:

[0027] determining an audio data broadcaster;

[0028] The target audio data is packaged into the audio data broadcaster so that the audio data broadcaster broadcasts the target audio data.

[0029] In a second aspect, the present application further provides an audio data processing device, the device comprising:

[0030] An acquisition module, used to acquire audio data to be processed;

[0031] An optimization module, used for optimizing the data size of the audio data to be processed to obtain initial target audio data, wherein the data size of the initial target audio is smaller than the data size of the audio data to be processed;

[0032] An encoding module, used for encoding the initial target audio data to obtain encoded audio data;

[0033] The optimization module is also used to optimize the data size of the encoded audio data to obtain target audio data, and the data size of the target audio data is smaller than the data size of the encoded audio data.

[0034] In a third aspect, the present application also provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in any one of the audio data processing methods.

[0035] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the steps in any one of the audio data processing methods.

[0036] The audio data processing method provided by the present application can first obtain the audio data to be processed. Then, the data size of the audio data to be processed is optimized for the first time, thereby reducing the amount of the audio data to be processed. After that, the optimized audio data to be processed is encoded to obtain encoded audio data. Then, the data size of the encoded audio data can be optimized for the second time, thereby obtaining audio data with a smaller data volume. After completing the data volume optimization of the audio data twice, the delay problem in the Bluetooth audio data transmission process can be effectively alleviated. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 is a schematic diagram of a scenario of an audio data processing system provided in an embodiment of the present application;

[0039] Figure 2 This is a flowchart of an embodiment of the audio data processing method in the embodiment of the present application;

[0040] Figure 3is a functional module diagram of an audio data processing device in an embodiment of the present application;

[0041] Figure 4 It is a schematic diagram of the structure of the terminal device in the embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0043] In the description of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the feature. In the description of the present application, "plurality" means two or more, unless otherwise clearly and specifically defined.

[0044] In this application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. At the same time, it is to be understood that in the specific implementation of this application, when user information, user data and other related data are involved, when the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data shall comply with relevant laws, regulations and standards of relevant countries and regions.

[0045] In order to enable any person skilled in the art to implement and use the present application, the following description is provided. In the following description, details are listed for the purpose of explanation. It should be understood that those of ordinary skill in the art will recognize that the present application can be implemented without using these specific details. In other examples, known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.

[0046] The present application provides an audio data processing method, apparatus, device and storage medium, which are described in detail below.

[0047] See also Figure 1 , Figure 1Schematic diagram of a scenario of an audio data processing system provided in an embodiment of the present application. The audio data processing system may include a terminal device 100 and a storage device 200. The storage device 200 may transmit data to the terminal device 100. Figure 1 The terminal device 100 in the embodiment can obtain the audio data stored in the storage device 200 to execute the audio data processing method in the present application.

[0048] In the embodiment of the present application, the terminal device 100 includes but is not limited to any terminal device with a Bluetooth module, such as: a desktop computer, a portable computer, a network server, a PDA (Personal Digital Assistant), a tablet computer, a wireless terminal device, an embedded device, a mobile phone, etc.

[0049] In the embodiment of the present application, the storage device 200 may be a storage device built into the terminal device 100, or may be an external storage device of the terminal device 100. If the storage device 200 is an external storage device of the terminal device 100, the terminal device 100 and the storage device 200 may communicate with each other through any communication method, including but not limited to mobile communications based on the 3rd Generation Partnership Project (3GPP), Long Term Evolution (LTE), Worldwide Interoperability for Microwave Access (WiMAX), or computer network communications based on the TCP / IP Protocol Suite (TCP / IP), User Datagram Protocol (UDP), etc.

[0050] It should be noted that Figure 1 The scenario diagram of the audio data processing system shown is merely an example. The audio data processing system and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the audio data processing system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is equally applicable to similar technical problems.

[0051] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of an audio data processing method in an embodiment of the present application. The audio data processing method may include the following steps 201 to 204:

[0052] 201. Obtain audio data to be processed.

[0053] In the embodiment of the present application, the audio data to be processed can be any type of audio data, such as MP3, WAV, etc., and the specific embodiment of the present application is not limited. At the same time, after the terminal device receives the audio transmission instruction via Bluetooth, the audio transmission instruction includes specifying the specific audio data to be transmitted. At this time, the specific audio data to be transmitted can be used as the audio data to be processed.

[0054] 202. Optimize the data size of the audio data to be processed to obtain initial target audio data, where the data size of the initial target audio is smaller than the data size of the audio data to be processed.

[0055] Normally, after determining the pending audio data to be processed, the pending audio data can be encoded through the relevant Bluetooth communication protocol. Then, the encoded audio data is sent to the target device, and then the target device decodes it to obtain the data transmitted via Bluetooth. In the embodiment of the present application, before the pending audio data is encoded, the data volume of the pending audio data can be optimized for the first time to obtain the initial target audio, thereby reducing the data volume of the encoded data. When the data volume of the encoded data is reduced, the data volume of the encoded data will also be reduced accordingly, thereby alleviating the amount of data transmitted and achieving the effect of reducing delay.

[0056] In the embodiments of the present application, the noise, outliers or duplicates can be removed from the processed audio data, which can help improve the quality of the audio data and reduce redundancy; or, the audio data can be detected to determine the type of the audio data, such as music type data or voice type data. If it is voice type audio data, feature extraction can be performed on the voice type audio data to determine the key important features, so that the data corresponding to the non-important features can be deleted, thereby achieving the effect of data slimming. It should be noted that there are many ways to slim down data, which are not limited by the specific embodiments of the present application.

[0057] 203. Encode the initial target audio data to obtain encoded audio data.

[0058] According to the above steps, after obtaining the initial target audio data, the initial target audio data can be encoded. The encoding method can be encoded using any encoding method of the Bluetooth communication protocol, and the specific embodiments of the present application are not limited, such as LC3 encoding, etc.

[0059] 204. Optimize the data size of the encoded audio data to obtain target audio data, where the data size of the target audio data is smaller than the data size of the encoded audio data.

[0060] In order to further optimize the size of the data, the communication delay of the Bluetooth transmission is further reduced. After the encoding of the audio data is completed, the encoded audio data after encoding can be further optimized. For example, the encoded data is compressed and the data volume of the encoded audio data is reduced. Similarly, the method of optimizing the encoded audio data after encoding also includes a variety of methods, which are not limited to the specific embodiments of the present application.

[0061] The audio data processing method provided by the present application can first obtain the audio data to be processed. Then, the data size of the audio data to be processed is optimized for the first time, thereby reducing the amount of the audio data to be processed. After that, the optimized audio data to be processed is encoded to obtain encoded audio data. Then, the data size of the encoded audio data can be optimized for the second time, thereby obtaining audio data with a smaller data volume. After completing the data volume optimization of the audio data twice, the delay problem in the Bluetooth audio data transmission process can be effectively alleviated.

[0062] In order to better implement the embodiment of the present application, in one embodiment of the present application, obtaining the audio data to be processed includes:

[0063] Acquire application audio data of a target application; perform a first sampling on the application audio data to obtain first sampled audio data; input the first sampled audio data into a target buffer area to obtain audio data to be processed.

[0064] In the above embodiment, a solution is provided for directly using the audio data to be transmitted as the audio data to be processed. In actual situations, in order to avoid bandwidth limitations or transmission stability, the application audio data in the application program can be first sampled to obtain first sampled audio data. Afterwards, the first sampled audio data is input into a buffer area, also known as a cache area, and wait for data transmission. Among them, the first sampling method can be sampling in any manner, and the specific embodiments of the present application are not limited.

[0065] In order to better implement the embodiment of the present application, in one embodiment of the present application, the data size of the audio data to be processed is optimized to obtain the initial target audio data, including:

[0066] Determine a first sampling data size of unit sampling data of the audio data to be processed; reduce the first sampling data size to obtain initial target audio data.

[0067] The above embodiments provide a variety of solutions for optimizing data. In the embodiments of the present application, a data optimization solution is also provided. For details, please refer to formula (1), which is as follows:

[0068] BufferSize=(S / M)×N……(1)

[0069] In formula (1), BufferSize is the data size in the buffer; S can be regarded as the first sampling data size, and the unit sampling data can be understood as the sampling data in a PCM audio coding unit, such as 128 sampling data; M can be regarded as the total number of samples in a unit time, such as 48,000 sampling data in one second; and N is the cache queue size, that is, N coding units.

[0070] At this time, in the embodiment of the present application, the data size of S can be reduced, so that the data (S / M) can be reduced, resulting in a reduction in BufferSize, thereby obtaining the initial target audio data.

[0071] In order to better implement the embodiment of the present application, in one embodiment of the present application, the data size of the audio data to be processed is optimized to obtain the initial target audio data, including:

[0072] Determine a second sampling data size of the overall sampling data of the audio data to be processed; increase the second sampling data size to obtain initial target audio data.

[0073] According to the above embodiment, it is possible to reduce the data before encoding according to formula (1). In the embodiment of the present application, data can also be reduced according to another method of formula (1). Among them, the audio data to be processed can be sampled, and the amount of data can be reduced by sampling. For example: M is the total overall sampled data in a unit time. At this time, the amount of data can be increased, and (S / M) can also be reduced, resulting in a reduction in BufferSize, thereby obtaining the initial target audio data.

[0074] The sampling method of the audio data to be processed may also be performed in any manner, which is not limited in the embodiment of the present application.

[0075] In order to better implement the embodiment of the present application, in one embodiment of the present application, the data size of the encoded audio data is optimized to obtain the target audio data, including:

[0076] Determine a third sampling data size of unit sampling data of the encoded audio data; reduce the third sampling data size to obtain target audio data.

[0077] In the above embodiment, a scheme for optimizing the data size of the encoded audio data after encoding is also provided. In the embodiment of the present application, the data size of the encoded data can also be optimized according to the above formula (1). That is, the encoded audio data after encoding can also be sampled, and the data amount of the encoded audio data can still be reduced by sampling. Similarly, according to the above formula (1), at this time, S can be regarded as the third sampling data size of the unit sampling data of the current encoded audio data. It can be seen that in the embodiment of the present application, S is essentially the unit sampling data. In other words, under different circumstances, the value S of the unit sampling data of the audio data to be processed can be regarded as the first sampling data size S1, or the third sampling size S2. When S is reduced, the data (S / M) is reduced, resulting in a reduction in BufferSize, thereby obtaining the target audio data.

[0078] In order to better implement the embodiment of the present application, in one embodiment of the present application, the data size of the encoded audio data is optimized to obtain the target audio data, including:

[0079] Determine a fourth sampling data size of the overall sampling data of the encoded audio data; increase the fourth sampling data size to obtain target audio data.

[0080] In the embodiment of the present application, the encoded audio data can also be optimized in the same way. For example, still substitute into formula (1), at this time M can also be regarded as the total number of samples in a unit time. Among them, the value identification of M is the same as the value identification of S above, and M is essentially a kind of sampling data. Therefore, in this case, the value identification of M can be four, which is the fourth sampling data size of the overall sampling data. When M is increased, the data (S / M) decreases, resulting in a decrease in BufferSize, thereby obtaining the target audio data.

[0081] In order to better implement the embodiment of the present application, in one embodiment of the present application, after optimizing the data size of the encoded audio data and obtaining the target audio data, the method further includes:

[0082] An audio data broadcaster is determined; and target audio data is packaged into the audio data broadcaster so that the audio data broadcaster broadcasts the target audio data.

[0083] In the embodiment of the present application, after obtaining the reduced target audio data, the target audio data can be transmitted to the target Bluetooth device, such as a Bluetooth headset, a Bluetooth speaker, etc. At this time, the target audio data can be broadcasted by LE Audio. For example, the target audio data is encapsulated into an LE Audio broadcaster, and then the target audio data is sent through a series of processing.

[0084] Specifically, the overall process of this application may include:

[0085] Step 1: The Android upper-layer audio and video app transmits audio data through LE Audiohw by calling the Audio interface;

[0086] Step 2: LE Audio receives audio and video data from the app, and then dynamically samples and sends it to the audio and video cache queue;

[0087] Step 3: The audio cache queue dynamically optimizes the cache queue data and transmits the optimized audio and video data to the protocol stack LC3 for encoding;

[0088] Step 4: Buffer queue optimization formula: BufferSize = (S / M)*N;

[0089] If BufferSize is too large, S can be dynamically reduced and M can be increased, as shown in formula (1);

[0090] Step 5: The corresponding LC3 encoded audio data is also dynamically optimized as before encoding;

[0091] Step 6: The LC3-encoded audio and video data is then transmitted to the LE Audio broadcaster;

[0092] Step 7: The LE Audio broadcaster takes the encoded LC3 data and organizes it into the broadcast group BIG data format;

[0093] Step 8: Then transmit it to the Controller through the broadcast state machine, and send the encapsulated LE data ISO broadcast through the Bluetooth Dongle.

[0094] In order to better implement the audio data processing method in the embodiment of the present application, in addition to the audio data processing method, the embodiment of the present application also provides an audio data processing device, such as Figure 3 As shown, the device 300 includes:

[0095] An acquisition module 301 is used to acquire audio data to be processed;

[0096] An optimization module 302 is used to optimize the data size of the audio data to be processed to obtain initial target audio data, wherein the data size of the initial target audio is smaller than the data size of the audio data to be processed;

[0097] The encoding module 303 is used to encode the initial target audio data to obtain encoded audio data;

[0098] The optimization module 302 is further used to optimize the data size of the encoded audio data to obtain target audio data, wherein the data size of the target audio data is smaller than the data size of the encoded audio data.

[0099] The audio data processing device provided by the present application can obtain the audio data to be processed through the acquisition module 301. Then, the data size of the audio data to be processed is optimized for the first time through the optimization module 302, thereby reducing the amount of the audio data to be processed. After that, the optimized audio data to be processed is encoded through the encoding module 303 to obtain encoded audio data. Then, the encoded audio data can be optimized for the second time through the optimization module 302 to obtain audio data with a smaller data volume. After completing the data volume optimization of the audio data twice, the delay problem in the Bluetooth audio data transmission process can be effectively alleviated.

[0100] In some embodiments of the present application, the acquisition module 301 is specifically used to:

[0101] Get the application audio data of the target application;

[0102] Performing a first sampling on the application audio data to obtain first sampled audio data;

[0103] The first sampled audio data is input into the target buffer area to obtain audio data to be processed.

[0104] In some embodiments of the present application, the optimization module 302 is specifically used to:

[0105] Determine a first sampling data size of unit sampling data of the audio data to be processed;

[0106] The size of the first sample data is reduced to obtain initial target audio data.

[0107] In some embodiments of the present application, the optimization module 302 is further used to:

[0108] Determine a second sampling data size of the overall sampling data of the audio data to be processed;

[0109] The second sampling data size is increased to obtain initial target audio data.

[0110] In some embodiments of the present application, the optimization module 302 is further used to:

[0111] determining a third sampling data size of the unit sampling data of the encoded audio data;

[0112] The third sampling data size is reduced to obtain target audio data.

[0113] In some embodiments of the present application, the optimization module 302 is further used to:

[0114] determining a fourth sample data size of the overall sample data of the encoded audio data;

[0115] The fourth sampling data size is increased to obtain target audio data.

[0116] In some embodiments of the present application, the device may further include a transmission module, which is specifically used to:

[0117] determining an audio data broadcaster;

[0118] The target audio data is packaged to an audio data broadcaster so that the audio data broadcaster broadcasts the target audio data.

[0119] The present application also provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps in any one of the audio data processing methods in the present application. The terminal device integrates any one of the audio data processing methods provided in the present application, such as Figure 4 As shown, it shows a schematic diagram of the structure of the terminal device involved in the embodiment of the present application, specifically:

[0120] The terminal device may include one or more processing core processors 401, one or more computer-readable storage media memories 402, a power supply 403, an input unit 404 and other components. Those skilled in the art will appreciate that Figure 4 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0121] The processor 401 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 executes various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 401 may include one or more processing cores; the processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. Preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.

[0122] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0123] The terminal device also includes a power supply 403 for supplying power to each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, power consumption management and other functions through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0124] The terminal device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0125] Although not shown, the terminal device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the terminal device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, such as:

[0126] Get the audio data to be processed;

[0127] Optimizing the data size of the audio data to be processed to obtain initial target audio data, wherein the data size of the initial target audio is smaller than the data size of the audio data to be processed;

[0128] Encoding the initial target audio data to obtain encoded audio data;

[0129] The data size of the encoded audio data is optimized to obtain target audio data, wherein the data size of the target audio data is smaller than the data size of the encoded audio data.

[0130] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0131] To this end, the embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any audio data processing method provided in the embodiment of the present application. For example, the computer program is loaded by the processor to execute the following steps:

[0132] Get the audio data to be processed;

[0133] Optimizing the data size of the audio data to be processed to obtain initial target audio data, wherein the data size of the initial target audio is smaller than the data size of the audio data to be processed;

[0134] Encoding the initial target audio data to obtain encoded audio data;

[0135] The data size of the encoded audio data is optimized to obtain target audio data, wherein the data size of the target audio data is smaller than the data size of the encoded audio data.

[0136] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0137] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.

[0138] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0139] The above is a detailed introduction to an audio data processing method and device provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An audio data processing method, characterized in that: The method comprises: Get the audio data to be processed; Optimizing the data size of the audio data to be processed to obtain initial target audio data, wherein the data size of the initial target audio data is smaller than the data size of the audio data to be processed; Encoding the initial target audio data to obtain encoded audio data; The data size of the encoded audio data is optimized to obtain target audio data, wherein the data size of the target audio data is smaller than the data size of the encoded audio data.

2. The audio data processing method according to claim 1, characterized in that: The step of obtaining the audio data to be processed includes: Get the application audio data of the target application; Performing a first sampling on the application audio data to obtain first sampled audio data; The first sampled audio data is input into a target buffer area to obtain audio data to be processed.

3. The audio data processing method according to claim 1, characterized in that: The step of optimizing the data size of the audio data to be processed to obtain initial target audio data includes: Determine a first sampling data size of unit sampling data of the audio data to be processed; The size of the first sampling data is reduced to obtain initial target audio data.

4. The audio data processing method according to claim 1, characterized in that: The step of optimizing the data size of the audio data to be processed to obtain initial target audio data includes: Determine a second sampling data size of the overall sampling data of the audio data to be processed; The second sampling data size is increased to obtain initial target audio data.

5. The audio data processing method according to claim 1, characterized in that: The step of optimizing the data size of the encoded audio data to obtain target audio data includes: Determine a third sampling data size of the unit sampling data of the encoded audio data; The third sampling data size is reduced to obtain target audio data.

6. The audio data processing method according to claim 1, characterized in that: The step of optimizing the data size of the encoded audio data to obtain target audio data includes: Determining a fourth sampling data size of the overall sampling data of the encoded audio data; The fourth sampling data size is increased to obtain target audio data.

7. The audio data processing method according to claim 1, characterized in that: After optimizing the data size of the encoded audio data to obtain the target audio data, the method further includes: determining an audio data broadcaster; The target audio data is packaged into the audio data broadcaster so that the audio data broadcaster broadcasts the target audio data.

8. An audio data processing device, characterized in that: The device comprises: An acquisition module, used to acquire audio data to be processed; An optimization module, used for optimizing the data size of the audio data to be processed to obtain initial target audio data, wherein the data size of the initial target audio is smaller than the data size of the audio data to be processed; An encoding module, used for encoding the initial target audio data to obtain encoded audio data; The optimization module is also used to optimize the data size of the encoded audio data to obtain target audio data, and the data size of the target audio data is smaller than the data size of the encoded audio data.

9. A terminal device, characterized in that: The terminal device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps in the audio data processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the audio data processing method according to any one of claims 1 to 7.