Audio processing method and device, equipment and storage medium

By receiving and processing digital audio data in the headphone box, the problem of distortion of audio signals transmitted by Bluetooth headsets is solved, high-quality audio playback and localized storage are achieved, and the user experience is improved.

CN118785033APending Publication Date: 2024-10-15GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310375809.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing Bluetooth headsets easily cause signal distortion when transmitting audio data, affecting sound quality, and cannot directly store audio and video data locally for offline playback.

Method used

By receiving the digital audio data sent by the electronic device in the headphone box, and using the codec and power amplifier for decoding and amplification processing, it ensures that the audio data is played back without distortion, and a storage module is provided for localized storage.

Benefits of technology

It improves the playback quality of audio data, realizes lossless and real audio transmission and localized storage, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118785033A_ABST
    Figure CN118785033A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an audio processing method and device, equipment and a storage medium, applied to an earphone box, the method comprises the following steps: receiving audio data sent by electronic equipment, the audio data being data sent by the electronic equipment to the earphone box in a digital audio format; and playing the audio data. Therefore, the audio data can be transmitted to the earphone box for playing without distortion, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to information processing technology, and relate to but are not limited to an audio processing method and apparatus, device, and storage medium. Background Art

[0002] With the development of Bluetooth technology, the trend of intelligence and wireless has been deeply reflected in Bluetooth headset products, and the current combination of intelligence and wireless trends is True Wireless Stereo (TWS) headset. Currently, audio and video can be obtained through various video websites and music sites, but it is inevitable that some audio or video data cannot be directly stored locally for offline playback.

[0003] In the related art, the realization of the independent use function of Bluetooth headsets often requires that the Bluetooth headsets have a system and computing power as powerful as mobile phones and other electronic devices, and when transmitting audio data from the main device (such as mobile phones, tablets, computers, etc.) to the Bluetooth headset for playback or storage, the main device must first encode the digital audio file, then amplify the encoded data, and then send the amplified encoded data to the Bluetooth headset through the Bluetooth radio frequency, and then the Bluetooth headset decodes and plays the received audio data. Since the analog audio signal itself is easily interfered, the encoding, decoding and amplification process will also cause loss of the audio signal, so the digital audio format file transmitted to the Bluetooth headset can no longer be compared with the digital audio format file in the main device in terms of sound restoration.

[0004] Therefore, seeking an audio processing method for playing audio without distortion is a problem that needs to be solved urgently. Summary of the invention

[0005] In view of this, the audio processing method, device, equipment, and storage medium provided in the embodiments of the present application can transmit audio data to the earphone box for playback without distortion, thereby improving the user experience. The audio processing method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:

[0006] The audio processing method provided in the embodiment of the present application is applied to an earphone box, and the method includes:

[0007] Receive audio data sent by the electronic device, where the audio data is data sent by the electronic device to the earphone box in a digital audio format; and play the audio data.

[0008] In some embodiments, the earphone box includes a data interface, which uses a digital audio format to transmit audio data and receives audio data sent by the electronic device, including:

[0009] Establishing a communication connection with the electronic device through the data interface, and sending identification information of the earphone box to the electronic device through the data interface, so that the electronic device determines the earphone box as a slave device according to the identification information;

[0010] Receive audio data through the data interface.

[0011] In some embodiments, the earphone box includes a Bluetooth module, and playing audio data includes:

[0012] In response to the received first play operation, obtaining a connection status between the earphone box and the Bluetooth audio device;

[0013] When the connection state is connected, the earphone box sends the audio data to the Bluetooth audio device through the Bluetooth module, so that the Bluetooth audio device plays the audio data.

[0014] In some embodiments, the earphone box further includes an audio playback module, and the method further includes:

[0015] When the connection state is disconnected, the audio data is played through the audio playback module.

[0016] In some embodiments, the earphone box further includes a codec and a power amplifier, and plays audio data through the audio playback module, including:

[0017] The audio data is decoded by a codec to obtain analog audio data;

[0018] After the analog audio data is amplified by the power amplifier, the amplified analog audio data is played by the audio playing module.

[0019] In some embodiments, the earphone box further includes a storage module, and the method further includes:

[0020] In response to the received recording operation, the audio data is stored in the storage module.

[0021] In some embodiments, storing the audio data in the storage module includes: storing the audio data in a target digital audio format corresponding to the audio data.

[0022] In some embodiments, the earphone box further includes an input module, and storing audio data in the storage module includes:

[0023] Output prompt information, the prompt information is used to input the storage name of the audio data;

[0024] Receive input operation and obtain the target storage name;

[0025] In response to the input operation, the audio data is stored in the storage module with a target storage name.

[0026] In some embodiments, the method further comprises:

[0027] A second play operation is received, where the second play operation is used to instruct to play the audio data stored in the earphone box; and in response to the second play operation, the audio data is played.

[0028] The audio processing device provided in the embodiment of the present application includes:

[0029] A receiving module, used for receiving audio data sent by an electronic device, wherein the audio data is data sent by the electronic device to the earphone box in a digital audio format;

[0030] The playing module is used to play the audio data.

[0031] The computer device provided in the embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.

[0032] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0033] In the audio processing method, device, computer device and computer-readable storage medium provided in the embodiments of the present application, the electronic device sends audio data to the earphone box in a digital audio format, so that the earphone box can play the audio data after receiving the audio data in the digital audio format. In this way, the audio data transmitted from the electronic device to the earphone box is not distorted, thereby improving the playback sound quality and further improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0035] Figure 1 An application scenario diagram of the audio processing method provided in an embodiment of the present application;

[0036] Figure 2 A schematic diagram of the implementation flow of the audio processing method provided in the embodiment of the present application;

[0037] Figure 3 A schematic diagram of the structure of the earphone box provided in an embodiment of the present application;

[0038] Figure 4 A schematic diagram of the implementation flow of the audio processing method provided in the embodiment of the present application;

[0039] Figure 5 A schematic diagram of the implementation process of the audio playback module playing audio data provided in the embodiment of the present application;

[0040] Figure 6 A schematic diagram of an earphone box outputting prompt information provided in an embodiment of the present application;

[0041] Figure 7 A schematic diagram of audio data naming provided in an embodiment of the present application;

[0042] Figure 8 A schematic diagram of playing stored audio data provided in an embodiment of the present application;

[0043] Fig. 9 A schematic diagram of the structure of an audio processing device provided in an embodiment of the present application;

[0044] Fig.10 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0047] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0048] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0049] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0050] Encoder: also called ADC, compresses analog audio signals into data encoding files. Encoding is divided into lossy encoding and lossless encoding. Lossy encoding formats cannot completely restore sound signals.

[0051] Decoder: The process of converting data encoding files into analog audio and video signals. The analog audio signal can directly drive the speaker to make sound after being amplified by the power amplifier. The analog audio signal is easily interfered and produces sound distortion; the audio file format, the quality of the encoder, the quality of the power amplifier, and the performance of the speaker are all key factors that determine the sound quality.

[0052] The currently popular True Wireless Stereo (TWS) headphones may have autonomous playback capabilities in the future, that is, their headphone boxes will have the ability to play local audio and streaming media, which will bring great convenience to users.

[0053] However, after Bluetooth headsets have the ability to play music independently, they will face the problem of how to obtain audio resources. Currently, they usually have built-in applications that can connect to music sites, or support connecting to cloud disks and mobile phones to obtain resources by copying. However, many resources cannot be copied directly or accessed through the Internet. These resources usually exist in exclusive applications of electronic devices such as mobile phones, tablets, and laptops, which means that they need to be played online through these applications.

[0054] Therefore, a better technical method is needed for the local storage of audio and video data in Bluetooth headsets. Compared with making Bluetooth headsets have a system and computing power as powerful as mobile phones and tablets, this technical method has a lower cost. At the same time, this method must also have the ability to restore the sound quality of audio resources to the greatest extent and minimize distortion.

[0055] In view of this, an embodiment of the present application provides an audio processing method. Figure 1 FIG. 1 is an application scenario diagram of an audio processing method in an embodiment. Figure 1 As shown, the method is applied to an earphone box.

[0056] Figure 2 The following is a schematic diagram of the implementation flow of the audio processing method provided in the embodiment of the present application. Figure 2 As shown, the method may include the following steps 201 to 202:

[0057] Step 201: receiving audio data sent by an electronic device, where the audio data is data sent by the electronic device to an earphone box in a digital audio format.

[0058] In the embodiments of the present application, there is no limitation on the specific type of electronic device. The electronic device is a device that can provide audio data, and may include but is not limited to mobile phones, tablet computers, laptop computers, vehicle-mounted terminals, PCs (Personal Computers), etc.

[0059] It should be noted that, in the embodiment of the present application, when the electronic device sends audio data to the earphone box, the format of the audio data is a digital audio format.

[0060] It is understandable that in the related art, when an electronic device transmits audio data to a Bluetooth headset, it is generally sent and received via Bluetooth radio frequency. For example, the electronic device first encodes the digital audio data to obtain the encoded data; then after amplifying the encoded data, the amplified encoded data is sent to the Bluetooth headset via Bluetooth radio frequency, and then the Bluetooth headset decodes and plays the received audio data. Since the analog audio signal itself is easily interfered, the encoding, decoding and amplification processes will also cause loss of the audio signal. Therefore, the audio data transmitted to the Bluetooth headset end cannot be compared with the audio data in the main device in terms of sound restoration.

[0061] Therefore, in the embodiment of the present application, in order to ensure that the audio data received by the earphone box is not distorted, when the electronic device sends the audio data to the earphone box, the format of the audio data is a digital audio format.

[0062] Furthermore, in a preferred embodiment, when the electronic device sends the audio data in a digital audio format to the earphone box, it is implemented through the USB Audio Class technology.

[0063] The so-called USB Audio Class refers to the USB audio class, which is a universal data interface like the Universal Serial Bus USB, which can realize many ways of audio data transmission in digital audio format. Different developers can define any control method, transmission mode, audio format and other parameters according to their own preferences and needs.

[0064] Step 202: play audio data.

[0065] In the embodiment of the present application, the electronic device sends audio data to the earphone box in a digital audio format, so that the earphone box can play the audio data after receiving the audio data in the digital audio format. In this way, the audio data transmitted from the electronic device to the earphone box is not distorted, thereby improving the playback sound quality and further improving the user experience.

[0066] The present application embodiment provides a schematic diagram of the structure of an earphone box, such as Figure 3As shown, the earphone box 30 includes a data interface 31 which uses a digital audio format to transmit audio data; a Bluetooth module 32 , an audio playback module 33 , a codec 34 , a power amplifier 35 and a storage module 36 .

[0067] exist Figure 3 Based on the provided earphone box, Figure 4 FIG. 1 is a schematic diagram of another implementation flow of an audio processing method provided in an embodiment of the present application. Figure 4 As shown, the method may include the following steps 401 to 408:

[0068] Step 401: The earphone box establishes a communication connection with the electronic device via a data interface, and sends identification information of the earphone box to the electronic device via the data interface.

[0069] Understandably, with the development of Bluetooth wireless technology, electronic devices such as mobile phones, tablet computers, and laptop computers have generally cancelled the 3.5mm audio interface and integrated the audio interface into the data interface, such as the data interface which may be a Universal Serial Bus USB interface.

[0070] Similarly, the earphone box provided in the embodiment of the present application also has a data interface, so that the electronic device can send audio data to the earphone box in a digital audio format through the data interface.

[0071] In the embodiments of the present application, the specific method for establishing a communication connection between the earphone box and the electronic device through the data interface is not limited. For example, the earphone box and the electronic device can be connected to each other through a data cable such as USB-A, Type-C, USB 3.2, Thunderbolt 3, Lightning, etc.

[0072] After the earphone box establishes a communication connection with the electronic device through the data interface, the earphone box can send its own identification information to the electronic device through the descriptor in the data interface protocol.

[0073] In a preferred embodiment, the earphone box uses itself as a USB audio device and sends its own identification information to the electronic device through a descriptor in the USB protocol.

[0074] When an electronic device detects that a new device (earphone box) is connected through a data interface, it can use different request commands (Request) to query the properties of the new device (earphone box). The earphone box reports its own identification information to the electronic device through different descriptors. The identification information may include the type of earphone box, the function of the earphone box, the number of endpoints of the earphone box, and other working properties.

[0075] Step 402: The electronic device determines the earphone box as a slave device according to the identification information, and sends the audio data to the earphone box through the data interface.

[0076] After receiving the identification information fed back by the earphone box, the electronic device can determine that the earphone box is an audio slave device according to the identification information, and set itself as an audio master device.

[0077] In some embodiments, the electronic device sends the audio data to the earphone box through the data interface, and the sending may be performed after receiving a selection operation initiated by the user. That is, the user may select the audio data that he wants to play on the earphone box at the electronic device end, and the electronic device may respond to the user's selection and send the corresponding audio data to the earphone box through the data interface.

[0078] Step 403: the earphone box receives audio data through the data interface.

[0079] In a preferred embodiment, when the electronic device sends the audio data in digital audio format to the earphone box, it is implemented by USB Audio Class technology.

[0080] Therefore, the audio data received by the earphone box is the original audio data without distortion. Therefore, when the earphone box chooses to play the received audio data, the sound quality of the audio data depends on the performance of the codec, power amplifier and audio playback module in the earphone box, but has nothing to do with the performance of the codec and power amplifier in the electronic device.

[0081] Step 404: the earphone box obtains the connection status between the earphone box and the Bluetooth audio device in response to the received first play operation.

[0082] In an embodiment of the present application, the earphone box also includes a display interface, which can be used to display interactive controls, text information and other content.

[0083] The first play operation may be an operation of the user on the play control on the display interface of the earphone box, or an operation of the user on the physical button on the earphone box, which is not limited in the embodiment of the present application. The first play operation may be any operation such as a sliding operation, a clicking operation, a gesture operation, a voice operation, etc.

[0084] After receiving the first play operation, the earphone box can respond to the first play operation by first obtaining the connection status between itself and the Bluetooth audio device, and then determining the play mode of the audio data based on the connection status.

[0085] In the embodiment of the present application, the specific type of the Bluetooth audio device is not limited. For example, the Bluetooth audio device can be a Bluetooth headset contained in an earphone box, or a Bluetooth audio device that can be connected to the earphone box for communication.

[0086] Step 405: When the connection state is connected, the earphone box sends the audio data to the Bluetooth audio device through the Bluetooth module, so that the Bluetooth audio device plays the audio data.

[0087] It should be noted that in order to ensure user experience and the playback effect of audio data, in an embodiment of the present application, the playback priority of the Bluetooth audio device is set to be higher than the playback priority of the earphone box itself.

[0088] Therefore, when the earphone box establishes a communication connection with the Bluetooth audio device, the Bluetooth audio device plays the audio data. Specifically, the earphone box can send the audio data to the Bluetooth audio device through the Bluetooth module carried by itself, and the Bluetooth audio device can play the audio data after receiving the audio data.

[0089] In some embodiments, the earphone box sends the audio data to the Bluetooth audio device and also transmits it by establishing a line connection through the data interface.

[0090] Here, after receiving the audio data, the Bluetooth audio device may first decode the audio data through a codec to obtain analog audio data; then amplify the analog audio data through a power amplifier in the Bluetooth audio device, and then play the amplified analog audio data.

[0091] Step 406: When the connection state is disconnected, play the audio data through the audio playing module.

[0092] Here, the audio playback module may be a speaker.

[0093] In a feasible embodiment, playing the audio data through the audio playing module can be achieved by executing the following steps 501 to 502:

[0094] Step 501, decoding the audio data through a codec to obtain analog audio data;

[0095] Step 502: After the analog audio data is amplified by the power amplifier, the amplified analog audio data is played by the audio playing module.

[0096] Step 407: The earphone box stores the audio data in the storage module in response to the received recording operation.

[0097] It should be noted that when the earphone box stores audio data, it stores the audio data in a target digital audio format corresponding to the audio data. The target digital audio format may be the original data format of the audio data when it is sent in the electronic device.

[0098] The recording operation may be an operation of the recording control on the display interface of the earphone box by the user, or an operation of the physical button on the earphone box by the user, which is not limited in the embodiment of the present application. The recording operation may be any operation such as sliding operation, clicking operation, gesture operation, voice operation, etc.

[0099] After the earphone box receives the recording operation, it can respond to the recording operation and store the audio data. Here, the recording method of the audio data is not limited. For example, in some embodiments, after the earphone box receives the recording operation, the entire audio data sent by the electronic device is stored; in other embodiments, when the earphone box plays the audio data, the microphone in the earphone box records and stores the played audio data.

[0100] Based on the above recording operation, the earphone box can store the distortion-free audio data required by the user.

[0101] In some embodiments, the earphone box may output a prompt message when storing audio data in a storage module in response to a received recording operation, and the prompt message is used to input a storage name for the audio data; receive the input operation and obtain a target storage name; and store the audio data in the storage module with the target storage name in response to the input operation.

[0102] Here, the output prompt information may be output on the display interface of the earphone box, and the prompt information is used to remind the user to input the storage name of the audio data.

[0103] Here, there is no limitation on the timing of the earphone box outputting the reminder information. For example, after receiving the end recording operation initiated by the user, the reminder information can be output in the form of a pop-up box on the display interface of the earphone box.

[0104] like Figure 6 As shown, a schematic diagram of outputting prompt information on a display interface of an earphone box is given, and the display interface of the earphone box displays the words "Please enter the audio name" through a pop-up box.

[0105] like Figure 7 As shown, after the earphone box outputs the prompt information, the earphone box can receive the input operation initiated by the user, that is, input the words "story audio" in the pop-up box on the display interface of the box.

[0106] After obtaining the target storage name corresponding to the audio data, the audio data can be stored in the storage module of the earphone box with the target storage name, so as to facilitate subsequent search and listening.

[0107] Step 408: receiving a second play operation, where the second play operation is used to instruct to play the audio data stored in the earphone box; and playing the audio data in response to the second play operation.

[0108] The second playback operation may be a playback operation of the audio data stored in the earphone box. Similarly, the second playback operation may be any operation such as a sliding operation, a clicking operation, a gesture operation, a voice operation, etc.

[0109] like Figure 8 As shown, the user can select "Song 2" displayed in the display interface of the earphone box and click to play it.

[0110] In some embodiments, the earphone box can also share the audio data stored thereon with other devices via WiFi, USB, etc.

[0111] In the embodiment of the present application, the earphone box establishes a communication connection with the electronic device through the data interface, and sends the identification information of the earphone box to the electronic device through the data interface; the electronic device determines the earphone box as a slave device according to the identification information, and sends the audio data to the earphone box through the data interface; the earphone box receives the audio data through the data interface, and determines the way to play the audio according to the connection status with the Bluetooth audio device; and the earphone box can also store the audio data in the storage module in response to the received recording operation, and rename the audio data so that the user can choose to play the audio data already stored in the earphone box. By executing the above method, the audio data transmitted from the electronic device to the earphone box is not distorted, so that even if the earphone box does not have a built-in specific application, does not have a large computing power, and does not have a large running memory, it can also play and store audio resources, thereby improving the user experience.

[0112] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0113] Based on the foregoing embodiments, an embodiment of the present application provides an audio processing device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0114] Fig. 9 A schematic diagram of the structure of the audio processing device provided in the embodiment of the present application is shown in FIG. Fig. 9 As shown, the device 900 includes a collection module 901 and a playback module 902, wherein:

[0115] The receiving module 901 is used to receive audio data sent by an electronic device, where the audio data is data sent by the electronic device to the earphone box in a digital audio format;

[0116] The playing module 902 is used to play the audio data.

[0117] In some embodiments, the device also includes a sending module and a receiving module, the sending module is used to establish a communication connection with the electronic device through a data interface, and send identification information of the earphone box to the electronic device through the data interface, so that the electronic device determines the earphone box as a slave device based on the identification information; the receiving module is used to receive audio data through the data interface.

[0118] In some embodiments, the device also includes an acquisition module, which is used to obtain the connection status between the earphone box and the Bluetooth audio device in response to the received first playback operation; the sending module is also used to send the audio data to the Bluetooth audio device through the Bluetooth module when the connection status is connected, so that the Bluetooth audio device plays the audio data.

[0119] In some embodiments, the playing module 902 is further configured to play audio data when the connection state is disconnected.

[0120] In some embodiments, the device also includes a codec and a power amplifier, wherein the codec is used to decode the audio data to obtain analog audio data; the power amplifier is used to amplify the analog audio data and then play the amplified analog audio data through the audio playback module.

[0121] In some embodiments, the device further comprises a storage module, wherein the storage module is configured to store the audio data in response to a received recording operation.

[0122] In some embodiments, the storage module is specifically configured to store the audio data in a target digital audio format corresponding to the audio data.

[0123] In some embodiments, the device also includes a display module and an input module, the display module is used to output prompt information, the prompt information is used to input the storage name of the audio data; the input module is used to receive input operations and obtain a target storage name; in response to the input operation, the audio data is stored in the storage module with the target storage name.

[0124] In some embodiments, the device further includes a response module, wherein the receiving module is used to receive a second playback operation, the second playback operation is used to instruct the playback of audio data stored in the earphone box; and the response module is used to play the audio data in response to the second playback operation.

[0125] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0126] It should be noted that in the embodiments of this application Fig. 9 The division of modules in the audio processing device shown is schematic and is only a logical functional division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.

[0127] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0128] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an audio processing method is implemented.

[0129] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0130] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0131] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0132] In one embodiment, the audio processing device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig.10 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the device. The computer program composed of various program modules enables the processor to execute the steps of the child attention monitoring method in various embodiments of the present application described in this specification.

[0133] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0134] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0135] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0136] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0137] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0138] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0139] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0140] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0141] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0142] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0143] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0144] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0145] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An audio processing method, characterized in that: Applied to an earphone box, the method comprises: Receiving audio data sent by an electronic device, wherein the audio data is data sent by the electronic device to the earphone box in a digital audio format; The audio data is played.

2. The method according to claim 1, characterized in that The earphone box includes a data interface, the data interface uses the digital audio format to transmit audio data, and the receiving audio data sent by the electronic device includes: Establishing a communication connection with the electronic device via a data interface, and sending identification information of the earphone box to the electronic device via the data interface, so that the electronic device determines the earphone box as a slave device according to the identification information; The audio data is received through the data interface.

3. The method according to claim 1, characterized in that The earphone box includes a Bluetooth module, and the playing of the audio data includes: In response to the received first play operation, obtaining a connection status between the earphone box and the Bluetooth audio device; When the connection state is connected, the earphone box sends the audio data to the Bluetooth audio device through the Bluetooth module, so that the Bluetooth audio device plays the audio data.

4. The method according to claim 3, characterized in that The earphone box further includes an audio playback module, and the method further includes: When the connection state is disconnected, the audio data is played through the audio playing module.

5. The method according to claim 4, characterized in that The earphone box further includes a codec and a power amplifier, and playing the audio data through the audio playing module includes: Decoding the audio data by the codec to obtain analog audio data; After the analog audio data is amplified by the power amplifier, the amplified analog audio data is played by the audio playing module.

6. The method according to claim 1, characterized in that The earphone box further includes a storage module, and the method further includes: In response to the received recording operation, the audio data is stored in the storage module.

7. The method according to claim 6, characterized in that Storing the audio data in the storage module includes: storing the audio data in a target digital audio format corresponding to the audio data.

8. The method according to claim 6, characterized in that The earphone box further includes an input module, and the storing of the audio data in the storage module includes: Outputting prompt information, wherein the prompt information is used to input a storage name of the audio data; Receive input operation and obtain the target storage name; In response to the input operation, the audio data is stored in the storage module with the target storage name.

9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: receiving a second play operation, where the second play operation is used to instruct to play the audio data stored in the earphone box; In response to the second playing operation, the audio data is played.

10. An audio processing device, characterized in that: include: A receiving module, used for receiving audio data sent by an electronic device, wherein the audio data is data sent by the electronic device to the earphone box in a digital audio format; The playing module is used to play the audio data.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Audio data processing method and system, electronic equipment and program product

    CN121122271A

  • Audio playback method, system, electronic device and storage medium

    WO2026129898A1