Audio data processing method and electronic device
By acquiring audio information from the electronic device and aligning it with the ambient audio collected by the audio device in time, dictation content is generated, solving the problem of high uplink bandwidth consumption during wireless headphone playback, thus achieving resource saving and accuracy of dictation content.
Patent Information
- Application Number
- CN202611341029.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
In scenarios where electronic devices play media audio through wireless headphones, the uplink bandwidth consumption from the headphones to the electronic device is relatively large, resulting in a waste of communication resources.
By acquiring audio information on the electronic device side and having the audio device only collect ambient audio, combining the audio information and ambient audio for time alignment, transcribed content is generated, avoiding repeated transmission of audio recordings from the audio device back to the electronic device.
It effectively reduces the data transmission bandwidth requirements from audio devices to electronic devices, reduces power consumption and backhaul pressure, and improves the time accuracy and resource utilization efficiency of dictation content.
Smart Images

Figure CN123185291A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio processing technology, and in particular to an audio data processing method and electronic device. Background Technology
[0002] In scenarios where electronic devices play media audio through wireless headphones, the dictation function can be used to trigger the headphones to record media audio and ambient audio, and then transmit it back to the electronic device via Bluetooth to generate dictation content.
[0003] However, this solution suffers from significant uplink bandwidth consumption when the headphones transmit data to the electronic device. Summary of the Invention
[0004] In view of the above, this application provides an audio data processing method and an electronic device, as follows: An audio data processing method, the method comprising: In response to the triggering of the electronic device's note-taking function, audio information corresponding to the audio data is obtained; wherein, the electronic device is capable of outputting the target audio corresponding to the audio data through an audio device; Receive ambient audio collected by the audio device; Based on the ambient audio and the audio information, the dictation content is obtained; The transcribed content can characterize the output audio collected during the process of the audio device outputting the target audio.
[0005] Optionally, in the above method, obtaining the audio information corresponding to the audio data includes: Determine the availability attributes of the audio data or the availability attributes of the audio frame corresponding to the audio data; the audio frame is a data frame obtained by encoding and decoding the audio data; According to the available attributes, audio information is obtained using the corresponding acquisition method; Different available attributes correspond to different acquisition methods.
[0006] Optionally, in the above method, if the audio data can be directly obtained from the obtainable attribute representation, obtaining the audio information includes: The audio data is read as audio information from the local storage area of the electronic device or from the server to which the electronic device is connected.
[0007] Optionally, in the above method, obtaining the dictation content based on the ambient audio and the audio information includes: Based on the audio playback schedule provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, the audio data is time-aligned with the ambient audio to obtain the transcribed content.
[0008] Optionally, in the above method, if the obtainable attribute representation allows obtaining the audio frame corresponding to the audio data, obtaining the audio information includes: During the encoding and decoding process of the audio data by the electronic device, the audio frames output by the electronic device during encoding or decoding are obtained as audio information.
[0009] Optionally, in the above method, obtaining the dictation content based on the ambient audio and the audio information includes: At least according to the audio frame playback timestamp provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, the audio frames output by the electronic device (encoded or decoded) are time-aligned with the ambient audio to obtain the transcribed content.
[0010] Optionally, in the above method, the audio frame output by the electronic device encoding or decoding is a decoded frame obtained by decoding the audio data through the decoder in the electronic device; Alternatively, the audio frame output by the electronic device through encoding or decoding is an encoded frame obtained by encoding the decoded frame through the encoder in the electronic device.
[0011] Optionally, in the above method, if the obtainable attribute characterizing the audio data and its corresponding audio frame is prohibited from being obtained, the step of obtaining the audio information includes: The audio playback status is obtained during the process of the electronic device outputting the audio data to the audio device; Audio information is generated based on the audio playback status and the data identifier of the audio data; The data identifier is used to uniquely identify the object that provides the audio data and the audio data itself.
[0012] Optionally, in the above method, obtaining the dictation content based on the ambient audio and the audio information includes: Based on the data identifier and the audio playback status in the audio information, at least one piece of audio reference information corresponding to the audio data is obtained; the audio reference information characterizes the audio features of the audio data. Based on the audio playback schedule provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, the audio reference information is time-aligned with the ambient audio to obtain the transcribed content.
[0013] An electronic device, comprising: A communication module used to communicate with audio devices; A processor is configured to, in response to the triggering of the note-taking function of an electronic device, obtain audio information corresponding to audio data; wherein the electronic device outputs target audio corresponding to the audio data through the audio device; receives ambient audio collected by the audio device through the communication module; and obtains note-taking content based on the ambient audio and the audio information; The transcribed content can characterize the output audio collected during the process of the audio device outputting the target audio. Attached Figure Description
[0014] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 A flowchart of an audio data processing method provided in an embodiment of this application; Figure 2 This is a partial flowchart of an audio data processing method provided in an embodiment of this application; Figure 3 This is a schematic diagram of the data processing link for audio data from the application (APP) side to the Bluetooth headset side in an embodiment of this application; Figure 4 This is another part of the flowchart of an audio data processing method provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the three main branches of the scheme proposed in this application; Figure 7 This is a schematic diagram of the data processing link for adding an LC-encoded frame copying process in an embodiment of this application; Figure 8 This is a schematic diagram illustrating the data flow method of a highly secure type of media in this application embodiment. Detailed Implementation
[0016] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0017] refer to Figure 1 This is a flowchart illustrating an audio data processing method provided in an embodiment of this application. This method is applicable to electronic devices capable of connecting to audio devices, such as mobile phones connected to headphones. The technical solution in this embodiment primarily aims to reduce bandwidth consumption between the audio device and the electronic device while meeting listening and note-taking requirements.
[0018] Specifically, the method in this embodiment may include the following steps: Step 101: In response to the triggering of the electronic device's note-taking function, obtain the audio information corresponding to the audio data.
[0019] Specifically, the electronic device is a terminal device capable of playing audio data and establishing a wireless communication connection with the audio device.
[0020] For example, electronic devices may include, but are not limited to: smartphones, tablets, laptops, smartwatches, smart speaker consoles, in-vehicle terminals, and other terminal devices with audio playback and Bluetooth communication capabilities.
[0021] Audio devices are output devices that establish wireless communication connections with electronic devices and are used to play audio data. For example, audio devices can be wireless headphones such as true wireless stereo (TWS) headphones, or Bluetooth headphones, wireless speakers, etc.
[0022] It should be noted that audio data can be digital audio signals corresponding to media content that needs to be output through an audio device, whether locally stored on an electronic device or acquired online. For example, audio data can include, but is not limited to: song files on online music platforms, video files in video playback applications, podcast programs, audiobooks, office meetings, and the voice stream from the other end of a voice call.
[0023] Correspondingly, the audio information corresponding to the audio data includes: audio content that can characterize the target audio or correspond to the audio content, and the audio information is temporally related to the playback process of the target audio. Specifically, the specific form of the audio information can be determined based on the available attributes of the audio data. Audio information may include, but is not limited to, any one of the following: the source file of the audio data, audio frames output by the electronic device encoding or decoding the audio data, the audio playback status during the output process of the audio data by the audio device, and the data identifier of the audio data. The audio playback status characterizes the start and end positions and status changes of the audio data during the output process to the audio device, such as a video file jumping from 5 minutes and 20 seconds to 5 minutes and 25 seconds to continue playback. The data identifier is used to uniquely identify the object providing the audio data, such as the copyright holder and the audio data itself.
[0024] The listening and note-taking function refers to the data acquisition and analysis function triggered when electronic devices and audio devices work together.
[0025] In one implementation, the transcription function can be triggered as follows: when the electronic device and the audio device are in a wireless connection state, the transcription function is automatically triggered when media audio is emitted from the audio device.
[0026] In another implementation, the transcription function can be triggered by receiving user input from the electronic device when the electronic device and audio device are wirelessly connected.
[0027] In other words, the dictation function is used to record and analyze the auditory scene that the user is in while listening to media content through an audio device, so as to output dictated content, which can serve as the data basis for subsequent user memory analysis.
[0028] Step 102: Receive ambient audio collected by the audio device.
[0029] In this embodiment, ambient audio refers to the surrounding sound signals collected by the audio device through its built-in or external microphone during the output of the target audio. For example, ambient audio may include, but is not limited to, background noise, user voice, other voices, and ambient reverberation in the environment in which the audio device is located. Unlike other audio devices that collect both ambient audio and record the target audio they are playing, transmitting both back to the electronic device, this embodiment only collects ambient audio and does not collect the output audio of the target audio at the audio device side. However, the audio information obtained in this embodiment can characterize the output audio collected during the process of the audio device outputting the target audio.
[0030] It should be noted that in this embodiment, the amount of ambient audio data collected by the audio device is much smaller than the amount of data collected simultaneously from ambient audio and output audio. Therefore, the amount of audio data transmitted by the audio device to the electronic device is significantly reduced, thereby saving uplink bandwidth, such as the Bluetooth uplink bandwidth between Bluetooth headsets and mobile phones.
[0031] Step 103: Obtain the content to be transcribed based on the ambient audio and audio information.
[0032] The transcribed content represents the output audio collected during the process of an audio device outputting the target audio. However, electronic devices do not require the audio device to collect the output audio when it outputs the target audio. In other words, the transcribed content is not directly generated from the audio signal recorded and transmitted back by the audio device, but rather is the content obtained after processing the acquired audio information and ambient audio on the electronic device side or in the cloud.
[0033] In one implementation, step 103 can be performed to fuse audio information with ambient audio (e.g., time alignment) to obtain the fused transcript.
[0034] It should be noted that since the audio information is obtained on the electronic device side, rather than being recorded and transmitted back by the audio device, the repeated transmission process of audio data being sent from the electronic device to the audio device output and then recorded and transmitted back to the electronic device can be avoided.
[0035] For example, when a user listens to music played on their phone using Bluetooth headphones, the dictation function is triggered. The phone acquires the audio information corresponding to the currently playing music, while the Bluetooth headphones only collect the user's humming and ambient noise. The phone then times-aligns and fuses the audio information corresponding to the currently playing music with the ambient audio collected by the Bluetooth headphones to obtain the dictation content. This dictation content can represent the user's humming, ambient noise, and the currently playing music, and can serve as the data basis for subsequent user memory analysis. Because the Bluetooth headphones do not need to record and transmit the played music back, the Bluetooth uplink bandwidth usage is significantly reduced.
[0036] In specific implementation, this embodiment can perform fusion processing (time alignment) on the electronic device side according to the type of audio information to obtain the listening and note content, or upload the audio information and environmental audio to the cloud side, and then perform fusion processing on the cloud side to obtain the listening and note content.
[0037] As can be seen, in the audio data processing method provided in this application embodiment, by acquiring the audio information corresponding to the audio data, and having the audio device only collect the ambient audio, the electronic device or the cloud only needs to fuse the audio information and the ambient audio collected by the audio device to obtain the listening and recording content. This listening and recording content can represent the output audio collected during the process of the audio device outputting the target audio. It is not necessary for the audio device to collect the output audio and then transmit it to the electronic device to generate the listening and recording content. This can save the bandwidth resources for the audio device to transmit data to the electronic device, and further reduce the power consumption and backhaul pressure of the audio device.
[0038] based on Figure 1 In a specific implementation of the technical solution shown, step 101, when obtaining the audio information corresponding to the audio data, can be implemented in the following way: Figure 2 As shown: Step 201: Determine the available attributes of the audio data or the available attributes of the audio frame corresponding to the audio data.
[0039] The accessibility attribute characterizes the manner and / or extent to which audio data or the corresponding audio frame can be acquired on the electronic device side. The accessibility attribute determines the specific method of acquiring audio information.
[0040] In one implementation, the available attributes are those of the audio data, used to indicate whether the audio data can be directly accessed by the electronic device. For example, whether the audio data can be downloaded, whether it is stored locally, or whether it can be obtained through an authorized interface.
[0041] In another implementation, attributes of the audio frame can be obtained to indicate whether the audio frame obtained after encoding and decoding the audio data can be acquired and exported by the electronic device. For example, whether the audio frame is located in memory space accessible by the operating system, whether it is encrypted, or whether it is in a protected output path, etc.
[0042] Among them, an audio frame is a data frame obtained by encoding and decoding audio data.
[0043] Specifically, the audio data stored or received in the electronic device is in a compressed encoding format. During playback, it needs to be decoded by a decoder into pulse code modulation (PCM) audio frames. Then, it is encoded into Bluetooth-compatible frames according to wireless audio transmission protocols such as Low Energy Audio (LE Audio) or Advanced Audio Distribution Profile (A2DP), such as Low Complexity Communication Codec (LC3), Sub-band Coding (SBC), and Advanced Audio Coding (AAC). Therefore, the audio frame can be either a decoded PCM audio frame or an encoded Bluetooth transmission frame. In this embodiment, the data processing location of the audio frame can be determined based on business requirements.
[0044] Step 202: Obtain audio information according to the available attributes and the corresponding acquisition method.
[0045] Different accessible attributes correspond to different acquisition methods. The correspondence between accessible attributes and acquisition methods can be preset by the electronic device. For example, accessible attributes include at least the following three categories: The first type is audio data that can be directly obtained (e.g., it can be downloaded or is already available locally). The second type is audio data that cannot be directly obtained, but its corresponding audio frames can be obtained and exported by the system. The third category is audio data that cannot be directly obtained, and its corresponding audio frames cannot be obtained or exported (i.e., the audio frames are located in protected domains, trusted execution environments, secure audio paths, protected buffers, or controlled hardware paths).
[0046] The three types of available attributes mentioned above correspond to different acquisition methods.
[0047] Based on this, in this embodiment, before obtaining the audio information, it can be determined whether the audio data is downloadable or can be legally obtained by the electronic device. If so, the obtainable attribute is determined to be of the first type; then, it is further determined whether the audio frame corresponding to the audio data can be obtained and exported by the electronic device system side; if so, the obtainable attribute is determined to be of the second type; if not, the obtainable attribute is determined to be of the third type. Then, according to the obtainable attribute, the audio information is obtained using the corresponding acquisition method.
[0048] As can be seen, by setting a judgment mechanism for available attributes, this embodiment obtains audio information by adopting differentiated acquisition methods based on different available attributes of audio data or audio frames, enabling this embodiment to cover multiple media content types and copyright protection scenarios, and has high scenario adaptability.
[0049] It should also be noted that, regardless of the acquisition method used in this embodiment, the audio device only needs to collect ambient audio and does not need to record and transmit the output audio of the audio device back, thereby continuously saving communication uplink bandwidth.
[0050] based on Figure 2 In one specific implementation of the technical solution shown, when the available attribute representation can directly obtain audio data, in step 202, audio data can be read as audio information from the local storage area of the electronic device or from the server to which the electronic device is connected.
[0051] Among them, the ability to directly obtain audio data refers to the fact that electronic devices are allowed to obtain the audio content of the audio data in the form of a file, a data stream, or an interface call.
[0052] For example, situations where audio data can be directly obtained may include, but are not limited to: audio data already stored in the local storage area of the electronic device (such as local music cache, download folder, application private directory, etc.); audio data being downloaded from the content server (such as music platform server, video platform server, cloud storage server, etc.) connected to the electronic device via the network; audio data being obtained from the content provider (such as music copyright holder) through an authorized application programming interface (API); and audio data being a media file accessible within the operating system of the electronic device.
[0053] In one implementation, reading audio data as audio information from the local storage area of the electronic device or from the content server connected to the electronic device may include: the electronic device searching for the existence of corresponding audio data in its local storage area based on the identification information of the currently playing audio data (such as song ID, file path, uniform resource locator (URL) etc.); if it exists, the audio data is directly read as audio information; if it does not exist or the local file is incomplete, a download request or streaming request is sent to the content server through the network of the electronic device, and the audio data returned by the content server is received as audio information.
[0054] For example, a user plays a song through an online music app on their phone, and the song can be downloaded locally. When the note-taking function is triggered, the phone determines that the song's accessibility attribute is directly accessible. The phone then reads the song's audio file (e.g., a Moving Picture Experts Group-1 audio layer-3, MP3 format file) from the online music app's cache directory, or requests the complete audio file of the song from the music platform server. The read or downloaded audio file is used as the audio information. In this scenario, the audio data is the complete song audio content, possessing the highest reference quality.
[0055] Based on this, in step 103, when obtaining the listening and note-taking content based on the ambient audio and audio information, the audio data can be time-aligned with the ambient audio according to the audio playback time schedule provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay to obtain the listening and note-taking content.
[0056] The audio playback time progress refers to the playback position information maintained by the electronic device's clock during the playback of audio data. It indicates the playback time of the audio data on the playback timeline according to the electronic device's clock. The audio playback time progress can be expressed in milliseconds, such as the audio data playing at 5:10:20 PM reaching the 120th second (i.e., 120,000 milliseconds).
[0057] The audio capture timestamp is a time stamp added by the audio device to each frame or segment of ambient audio during capture. The audio capture timestamp is generated based on the capture clock, i.e., the audio device's clock, and indicates the capture time of the audio frame in the ambient audio on the audio device's local timeline, such as capturing the 119th second of the audio frame at 5:10:21 PM. Since the electronic device and the audio device maintain independent clocks, their timelines may deviate. Therefore, a clock mapping relationship between the electronic device's clock and the audio device's clock can be established in advance.
[0058] Device transmission latency is the round-trip time or one-way transmission delay required for audio information to be transmitted between electronic devices and audio devices via wireless communication connections (such as Bluetooth connections).
[0059] In one implementation, device transmission latency can be measured in real time via a Bluetooth connection between the electronic device and the audio device. For example, the electronic device sends a time synchronization request frame to the audio device. After receiving the request frame, the audio device records the reception time and returns a response frame. The electronic device calculates the round-trip time based on the request sending time and the response receiving time, and then divides it by 2 to obtain the one-way device transmission latency.
[0060] In another implementation, the device transmission latency is a preset empirical or statistical value, such as a typical latency of 40 to 100 milliseconds for Bluetooth audio transmission.
[0061] It should be noted that, in this embodiment, time alignment refers to: determining the playback time position of each frame (sound signal at each moment) in the ambient audio on the playback time axis of the audio data based on the audio playback time progress, audio acquisition timestamp, and device transmission delay, and of course, also in conjunction with the clock mapping relationship, so as to align the audio content at the corresponding time point in the audio data with the ambient sound signal at the corresponding time point in the ambient audio to obtain the listening and transcription content.
[0062] Specifically, for a frame of ambient audio captured by an audio device, the audio capture timestamp it carries is T_ear (based on the audio device clock). The electronic device first converts T_ear into the corresponding time T_dev_map under the electronic device clock according to the pre-established clock mapping relationship. Then, based on the device transmission delay D_delay, the playback time T_play corresponding to the audio data on the playback time axis of the frame of ambient audio is calculated as: T_dev_map-D_delay, or the corresponding time offset calculation method is adopted according to the transmission direction. In this way, the audio content corresponding to the T_play time is located from the audio data, realizing the time alignment between ambient audio and audio data, and obtaining the listening and transcription content.
[0063] For example, the note-taking function is triggered at the 120-second mark of a song playing on a mobile phone. The phone reads the song file as audio information. While the Bluetooth headset plays the song, it captures ambient audio through its microphone. Each frame of ambient audio carries a timestamp from the headset (e.g., at the 1000th millisecond of the headset's local clock). Based on the headset's timestamp and the Bluetooth transmission latency (e.g., 50 milliseconds), the phone determines that this frame of ambient audio corresponds to the 950th millisecond on the song's playback timeline (i.e., 950 milliseconds after the 120th second). Then, it aligns the audio content at the corresponding time point in the song file with this frame of ambient audio to obtain the aligned note-taking content. The final note-taking content accurately corresponds to the ambient noise in time, realistically reflecting the user's auditory experience during song playback.
[0064] In one implementation, in step 103, audio data, ambient audio, audio playback time schedule provided by the electronic device, audio acquisition timestamp provided by the audio device, and device transmission delay can be uploaded to the cloud on the electronic device side. The cloud then aligns the audio data with the ambient audio according to the audio playback time schedule provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay to obtain the listening and transcription content.
[0065] Specifically, in this embodiment, before sending audio data and other information to the cloud, the audio data and other information are first encrypted, signed, or watermarked before being uploaded to the cloud to ensure data security and traceability.
[0066] In another implementation, in step 103, the audio data can be time-aligned with the ambient audio according to the audio playback schedule provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, to obtain the transcribed content.
[0067] As can be seen, in this embodiment, for audio data that can be downloaded or acquired locally, directly reading the complete audio data as audio information can obtain the highest quality reference audio. At the same time, by combining the audio playback progress of the electronic device, the audio acquisition timestamp of the audio device, and the device transmission delay, precise time synchronization between ambient audio and audio data can be achieved even when the electronic device and audio device have their own independent clocks, ensuring the time accuracy of the transcribed content.
[0068] It should be noted that this embodiment also obtains the listening session identifier corresponding to the listening and note-taking function. The listening session identifier is used to uniquely identify this listening and note-taking session. In this embodiment, the audio information and ambient audio belonging to the same listening and note-taking session are time-aligned according to the listening and note-taking session identifier to obtain the listening and note-taking content.
[0069] based on Figure 2 In a specific implementation of the technical solution shown, where the available attribute representation allows the acquisition of the audio frame corresponding to the audio data, step 202 can obtain the audio frame output by the electronic device during the encoding or decoding of the audio data as audio information.
[0070] Among them, the "acquisitive attribute" means that the audio frame corresponding to the audio data can be obtained. This means that the audio data itself cannot be directly downloaded or obtained (e.g., the copyright holder has not provided download permission, the audio data is encrypted streaming media, etc.), but the audio frame generated after the audio data is decoded and / or encoded on the electronic device side is located in the memory space or data path accessible by ordinary operating system processes, and the electronic device system side has the permission and ability to copy, mirror or export these audio frames.
[0071] The encoding / decoding process includes a decoding process and / or an encoding process. The decoding process involves decoding compressed audio data (such as MP3, Advanced Audio Coding (AAC), etc.) into Pulse Code Modulation (PCM) audio frames. The encoding process involves encoding the PCM audio frames into encoded frames suitable for Bluetooth transmission according to a wireless audio transmission protocol. The audio frames output by the electronic device after encoding or decoding are decoded frames obtained by decoding the audio data through a decoder in the electronic device. Alternatively, the audio frames output by the electronic device after encoding or decoding are encoded frames obtained by encoding the decoded frames through an encoder in the electronic device.
[0072] For example, in Low Energy Audio (LE Audio) protocols, the encoding process encodes PCM audio frames into LC3 encoded frames; similarly, in Advanced Audio Distribution Profile (A2DP), the encoding process encodes PCM audio frames into Sub-band Coding (SBC), AAC, aptX, or LDAC encoded frames, etc. Based on this, this embodiment uses PCM audio frames or LC3 encoded frames as audio information for acquisition.
[0073] For example, such as Figure 3 The diagram illustrates the data processing chain for audio data from the application (APP) side to the Bluetooth headset side, specifically including: APP / Web / Player - Media Demultiplexing / Decoder - PCM audio frames - Audio Rendering (AudioTrack) / AudioFlinger / Audio Hardware Abstraction Layer (Audio HAL) - A2DP / LE Audio Encoding - Transmitted to Bluetooth headset via Bluetooth. Figure 3 The data processing link shown in this embodiment allows the audio frame to be obtained at the node where the decoder outputs the PCM audio frame, or at the node where the LE Audio encoder outputs the LC3 encoded frame. Taking the LC3 encoded frame as an example, after the PCM audio frame is encoded into an LC3 encoded frame by the Audio HAL / LE Audio encoder, one copy is sent to the transcription service provided in this embodiment, and the other copy continues along the original link, is packetized by LE Audio, and then sent to the Bluetooth headset via Bluetooth.
[0074] It should be noted that since LC3 encoded frames have already undergone compression encoding, their data volume is smaller than that of PCM audio frames. Therefore, in this embodiment, LC3 encoded frames can be preferentially used as audio information, which can further reduce the amount of data required to obtain the dictation content. Furthermore, LC3 encoded frames are the data ultimately sent to the audio device and decoded and played on the audio device side. Therefore, LC3 encoded frames, as the audio reference stream, have the highest consistency with the actual output audio played by the audio device, thereby improving the accuracy of the dictation content.
[0075] In one implementation, this embodiment can determine whether the encoding / decoding path of the audio data is a path accessible to a normal system. If the audio frame is located in a trusted execution environment (TEE), a secure audio path, a secure digital signal processor (DSP), a protected buffer, or a controlled hardware path, then the accessible attribute is determined to be not of the second type, but rather of the third type. Only when the audio frame is located in a memory space or data path readable and writable by a normal operating system process is the accessible attribute determined to be of the second type, and the audio frame copying operation of this embodiment is executed.
[0076] Based on this, in step 103, when obtaining the listening and note-taking content based on the ambient audio and audio information, the audio frames output by the electronic device that are encoded or decoded can be time-aligned with the ambient audio at least according to the audio frame playback timestamp provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, so as to obtain the listening and note-taking content.
[0077] In one implementation, in step 103, the audio frames encoded or decoded by the electronic device, the ambient audio, the audio frame playback timestamp provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay can be uploaded to the cloud on the electronic device side. The cloud then times-aligns the audio frames encoded or decoded by the electronic device with the ambient audio according to the audio frame playback timestamp provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay to obtain the listening and transcription content.
[0078] Specifically, in this embodiment, before sending audio frames and other information to the cloud, the audio frames and other information are first encrypted, signed, or watermarked before being uploaded to the cloud to ensure data security and traceability.
[0079] In another implementation, in step 103, the audio frames output by the electronic device that are encoded or decoded are time-aligned with the ambient audio according to the audio frame playback timestamp provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, to obtain the listening and transcription content.
[0080] The audio frame playback timestamp is a time stamp added to an audio frame by an electronic device when it generates the frame (whether it's a decoded or encoded frame). It indicates the playback position of the audio frame on the audio data playback timeline. For example, the audio frame playback timestamp can be a media playback timestamp, which is the relative time calculated from the start of audio data playback, such as the playback timestamp of an audio frame being the 500th millisecond. Alternatively, the audio frame playback timestamp can be the time value of the electronic device's clock, combined with the start time of the audio data playback to calculate the playback position, such as the playback timestamp of an audio frame being 10:00:10 AM.
[0081] In one implementation, time alignment in this embodiment refers to determining that each frame in the ambient audio corresponds to an audio frame with the same playback timestamp based on the audio frame playback timestamp, the audio acquisition timestamp, and the device transmission delay, and of course, also in conjunction with the clock mapping relationship, so as to obtain the dictation content.
[0082] Specifically, for a frame of ambient audio captured by an audio device, its audio capture timestamp is T_ear (based on the audio device's clock). The electronic device first maps T_ear to the corresponding time T_dev_map under the electronic device's clock. Then, based on the device's transmission delay D_delay, it calculates the playback time T_play on the audio data playback timeline corresponding to this frame of ambient audio: T_play = T_dev_map - D_delay. Afterward, the electronic device finds the audio frame whose playback timestamp is closest to or matches T_play, aligns and associates this audio frame with the ambient audio frame, and obtains the transcription content.
[0083] For example, a user watches a movie through a video app on their phone. The movie's audio track is copyrighted and cannot be downloaded. The phone plays the movie audio through Bluetooth headphones. When the transcription function is triggered, the phone copies an LC3 encoded frame as audio information at the node where the LE Audio encoder outputs the LC3 encoded frame. Each LC3 encoded frame carries a corresponding playback timestamp, indicating its position on the movie's timeline. The Bluetooth headphones simultaneously capture ambient audio (including the user's comments and environmental noise) while playing the movie audio, and add a headphone capture timestamp to each frame of ambient audio. The phone timestamps the LC3 encoded frame sequence and the ambient audio frame sequence according to their respective playback and capture timestamps. The resulting transcription content shows a precise temporal correspondence between the movie audio and the user's comments.
[0084] As can be seen, in this embodiment, for media content that cannot be downloaded but whose audio frames are obtainable, copying the decoded or encoded frames as audio information during the encoding and decoding process can avoid the audio device recording and transmitting the output audio back, and also obtain reference audio, i.e., audio information, that is highly consistent with the actual audio played by the audio device on the electronic device side. In particular, for the copying of encoded frames, since the encoded frame itself is the data sent to the audio device, it has complete consistency with the audio decoded and played by the audio device, which can improve the accuracy of the obtained transcription content. At the same time, the encoded frame has been compressed, and the data volume is small, which can further save processing resources.
[0085] based on Figure 2 In one specific implementation of the technical solution shown, when the acquisition of the audio data with the available attribute representation and its corresponding audio frame is prohibited, step 202 can first obtain the audio playback status during the process of the electronic device outputting audio data to the audio device, and then generate audio information based on the audio playback status and the data identifier of the audio data.
[0086] The phrase "accessible attributes indicating that audio data and its corresponding audio frames are prohibited from access" refers to the following: the audio data itself cannot be directly downloaded or acquired, and the audio frames generated after decoding and / or encoding on the electronic device side reside in protected domains, trusted execution environments, secure audio paths, secure digital signal processors, protected buffers, or controlled hardware paths. Ordinary operating system processes cannot access, copy, or export these audio frames. For example, for digital rights management (DRM) content, decrypted plaintext PCM audio frames or intermediate frames may not appear in memory readable by ordinary operating system processes. Instead, they may circulate in TEE, secure operating systems, DSP secure memory, secure codec buffers, protected audio paths, or trusted output paths. Ordinary system components, ordinary processes, and even some unauthorized hardware abstraction layer modules cannot access the plaintext data. In this scenario, electronic devices cannot and should not bypass digital rights management (DRM) to obtain audio content or reproducible audio encoded frames.
[0087] It should be noted that audio playback status refers to the status information related to the playback process generated by an electronic device during the playback of audio data. For example, audio playback status may include, but is not limited to: playback position (i.e., the point in time the audio data is being played), playback speed (e.g., 1x, 1.5x, 2x, etc.), playback status changes (e.g., start playback, pause, resume playback, stop, fast forward, rewind, skip, etc.), listening session identifier, and playback timeline information. The playback timeline information may include the timestamp mapping between the electronic device's local clock and the media playback timestamp, as well as the time when the playback status change event occurred. Data identifiers may include, but are not limited to: content platform identifiers (e.g., music application package name, video platform name, etc.), content IDs (e.g., song ID, video ID, program ID, etc.), content fingerprints (e.g., audio fingerprint), international standard recording code (ISRC), universal product code (UPC), etc. Data identifiers enable the cloud or content platform to uniquely identify the corresponding audio data and audio provider.
[0088] Therefore, the audio information in this embodiment may include audio playback status and data identifiers, but does not include the audio data itself, audio frames from which audio can be reconstructed, or any audio data obtained by bypassing DRM. That is, the audio information can be metadata-level information, which itself cannot reconstruct the original audio data, but can indicate the acquisition of corresponding reference audio information through legitimate authorized channels.
[0089] For example, a user watches a DRM-protected paid movie through a video app on their phone, with the movie audio played via Bluetooth headphones. When the note-taking function is triggered, the phone determines that the movie audio is not downloadable and that its decoded audio frames are located within a secure decoder in the TEE (Television Encryption Environment), inaccessible to ordinary systems. Based on this, the phone generates audio information including: the audio playback status (currently playing at the 45th minute of the movie, playback speed at 1x, playback status normal), and data identifiers (content platform identifier "XX Video", content ID "movie_123456", and the movie's International Standard Audiovisual Reproduction Code (ISRC)). This audio information does not contain any movie audio data content.
[0090] Based on this, in step 103, when obtaining the dictation content based on the ambient audio and audio information, it can be achieved in the following way, such as... Figure 4 As shown: Step 401: Obtain at least one piece of audio reference information corresponding to the audio data according to the data identifier and audio playback status in the audio information.
[0091] Audio reference information characterizes the audio features of audio data. Specifically, audio reference information can be used for fusion processing with ambient audio. Audio reference information differs from a complete audio file or audio frame; it can be various characteristic representations or auxiliary information of the audio data. For example, audio reference information may include, but is not limited to, at least one of the following: licensed audio tracks (i.e., legitimate audio files or track fragments provided by content platforms or copyright holders), lyrics, subtitles / captions, automatic speech recognition (ASR) text (i.e., the recognized text of the audio content), audio fingerprints, acoustic features (such as Mel-frequency cepstral coefficients (MFCCs)), semantic tags, content summaries, etc.
[0092] Specifically, in step 401, the data identifier and audio playback status can be uploaded to the cloud. The cloud can then identify the corresponding content platform and audio data based on the data identifier. Through the authorization relationship with the content platform, copyright holder, or DRM service provider (such as content sharing agreement, authorized access interface, copyright cooperation, etc.), the cloud can request the audio reference information corresponding to the audio data from the content platform. The content platform returns the corresponding audio reference information based on the authorization relationship.
[0093] It should be noted that the process of obtaining audio reference information in this embodiment is a legally authorized process and does not involve cracking or bypassing DRM-protected content.
[0094] For example, a mobile phone can upload a data identifier ("XX Video" + "movie_123456") and audio playback status (playing to the 45th minute) to the cloud. The cloud identifies the movie as paid content from the XX Video platform based on the data identifier. Since there is an authorization partnership between the cloud and the XX Video platform, the cloud requests audio reference information from the XX Video platform near the 45th minute of the movie via an authorized API. The XX Video platform returns the lyrics, subtitles, and audio fingerprint of that segment as audio reference information.
[0095] Step 402: According to the audio playback schedule provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, align the audio reference information with the ambient audio in time to obtain the transcribed content.
[0096] In one implementation, after obtaining the audio reference information, this embodiment can align the audio reference information (such as the subtitle text corresponding to the 45th minute) with the ambient audio collected by the audio device according to the audio playback time progress and the audio acquisition timestamp of the ambient audio, combined with the device transmission delay and clock mapping relationship, to obtain the listening and transcription content.
[0097] For example, a user listens to a DRM-protected audiobook through Bluetooth headphones. The audiobook application runs on the phone, and its audio decoding path is protected by a secure audio path, preventing the system from accessing the decoded audio frames. When the note-taking function is triggered, the phone generates audio information, including a data identifier (content platform identifier: "XX Audiobook", content ID: "audiobook_789", international standard recording codec (ISRC): "ISRC-AB-123-456") and audio playback status (currently playing Chapter 3, Section 2, playback position: 01:23:45, playback speed: 1.2x, pause / play status: playing). The phone uploads the audio information and ambient audio to the cloud. The cloud establishes an authorized connection with the audiobook platform based on the data identifier, obtaining the authorized reference text (i.e., the word-for-word text of this audiobook section) and audio fingerprint as audio reference information for that chapter. The cloud-based system extracts the audio fingerprint from the ambient audio transmitted back by the headphones (including the user's repetition and background sounds) and matches it with the authorized audio fingerprint to determine the corresponding position of each frame of ambient audio on the audiobook's timeline. Then, it aligns the authorized reference text corresponding to that position with the ambient audio in time, generating a transcript containing the user's repetition and the corresponding text. During this process, the phone only uploads audio information and ambient audio without any audio data, without bypassing DRM protection. The headphones only collect ambient audio and do not transmit audio back, thus achieving the dual goals of copyright compliance and Bluetooth bandwidth saving.
[0098] In one implementation, in step 402, the audio reference information, ambient audio, audio playback time schedule provided by the electronic device, audio acquisition timestamp provided by the audio device, and device transmission delay are uploaded to the cloud. The cloud then aligns the audio reference information with the ambient audio according to the audio playback time schedule provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay to obtain the listening and transcription content.
[0099] Specifically, in this embodiment, information such as audio reference information can be encrypted, signed, or watermarked before being uploaded to the cloud to ensure data security and traceability.
[0100] In another implementation, in step 402, the audio reference information can be time-aligned with the ambient audio according to the audio playback schedule provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, to obtain the transcribed content.
[0101] In another implementation, in step 103, the data identifier and audio playback status can be uploaded to the cloud on the electronic device side. The cloud then obtains audio reference information from the content platform based on the data identifier and audio playback status. At the same time, the ambient audio, the audio playback time progress provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay are uploaded to the cloud. The cloud then aligns the audio reference information with the ambient audio according to the audio playback time progress provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay to obtain the listening and transcription content.
[0102] As can be seen, in this embodiment, for media content protected by DRM or other strong security types, only audio information such as audio playback status and data identifiers, as well as ambient audio, are uploaded without uploading audio data, reproducible audio frames, or bypassing DRM. This allows the reference source to be obtained in the cloud based on a legal authorization relationship, which complies with the requirements of copyright protection and content security, while also enabling the acquisition of audio reference information required for the listening and note-taking function. At the same time, the audio device still only needs to collect ambient audio, thus continuously ensuring the saving of Bluetooth uplink bandwidth.
[0103] In summary, this embodiment can realize a complete classification scheme from audio data that can be downloaded, audio data that cannot be downloaded but audio frames that can be copied, to audio frames that cannot be obtained.
[0104] refer to Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include the following structure: Communication module 501, such as a Bluetooth module, is used to communicate with audio devices; The processor 502 is configured to, in response to the triggering of the note-taking function of the electronic device, obtain audio information corresponding to the audio data; wherein, the electronic device outputs the target audio corresponding to the audio data through the audio device; receives ambient audio collected by the audio device through the communication module; and obtains the note-taking content based on the ambient audio and the audio information; The transcribed content can characterize the output audio collected during the process of the audio device outputting the target audio.
[0105] As can be seen, in the electronic device provided in this application embodiment, by acquiring the audio information corresponding to the audio data, and by having the audio device only collect the ambient audio, the electronic device or the cloud only needs to fuse the audio information and the ambient audio collected by the audio device to obtain the listening and recording content. This listening and recording content can represent the output audio collected during the process of the audio device outputting the target audio. It is not necessary for the audio device to collect the output audio and then transmit it to the electronic device to generate the listening and recording content. This can save the bandwidth resources for the audio device to transmit data to the electronic device, and further reduce the power consumption and backhaul pressure of the audio device.
[0106] Taking a scenario where a mobile terminal, such as a mobile phone, outputs media audio via Bluetooth headphones as an example, the technical solution of this application is illustrated below: This application presents a system method for headphone transcription scenarios, integrating "media reference stream generation, headphone environment audio feedback, timestamp alignment and fusion, and Bluetooth uplink saving." (Reference) Figure 6 The diagram below illustrates the three main branches of the proposed solution. Option 1: Mobile devices capable of downloading media can directly access the solution. The audio emitted by mobile terminals is mainly of two types: audio from video data or audio from audio data. For example, the audio from music or blog posts. In this application, both video and audio data are categorized into two types: downloadable and non-downloadable. If downloadable, the corresponding audio or video data is downloaded directly when playing and transmitted from the mobile terminal to the cloud.
[0107] When the user's headphones play the corresponding media audio, they only collect the microphone sound (i.e., ambient audio) and the timestamps of detailed operations (i.e., audio acquisition timestamps). After the ambient audio collected by the microphone is transmitted back to the mobile terminal via Bluetooth, and then transmitted back to the cloud by the mobile terminal, the downloaded audio data and ambient audio are combined with the timestamps and merged. The merged listening and dictation content serves as the data basis for the user's memory analysis.
[0108] The specific plan is as follows: 1. The mobile terminal detects that the wireless headphones are connected and detects that media audio is about to be or is being played through the headphones.
[0109] 2. The mobile terminal determines whether the current media can be downloaded or whether the media source, such as music or movies, can be legally obtained.
[0110] 3. If downloadable, the mobile terminal downloads the corresponding audio, video, or audio track from the server, or obtains the corresponding media source from local cache, authorized interface, or local media files.
[0111] 4. The headphone end does not collect media audio, but only ambient audio, user operation events (such as user control of play, pause or fast forward, etc.) and timestamps collected by the headphone end.
[0112] 5. The headset transmits ambient audio and the collected timestamp back to the mobile terminal via Bluetooth.
[0113] 6. The VisionBuds Service in the mobile terminal uploads the downloaded media source, ambient audio, user operation events, and timestamps to the cloud.
[0114] 7. The cloud platform synchronizes and merges the media source with the ambient audio based on the media playback time progress, headphone clock, headphone acquisition timestamp, and Bluetooth latency (i.e., device transmission latency).
[0115] Option 2: LC3 encoded frame copying scheme for non-downloadable media: For media that cannot be downloaded, if the audio data of the media eventually passes through the LE Audio encoding path on the mobile terminal side and generates a system-accessible LC3 encoded frame, the mobile terminal copies the same LC3 encoded frame before or during the transmission of the LC3 encoded frame to the wireless earphones and uploads it as a media reference stream to the VisionBuds Service in the mobile terminal, so as to avoid the earphones receiving the audio data and then transmitting it back to the mobile terminal.
[0116] This module does not change the original headphone playback path, nor does it affect the normal transmission of LC3 encoded frames to the headphones; it only bypasses and copies one LC3 encoded frame for listening comprehension analysis. Based on Figure 3 The data processing link shown in this application adds a process for copying LC encoded frames, such as... Figure 7 As shown in the image.
[0117] The core of this application lies in the fact that although non-downloadable media cannot be directly downloaded by a mobile terminal, it still needs to be encoded into LC3 encoded frames by the mobile terminal and sent to the headphones via Bluetooth during playback. Therefore, if copying is permitted and the system has the necessary permissions, the LC3 encoded frame can be directly copied as a media reference stream, thereby avoiding the need for the headphones to record and transmit the media audio back.
[0118] The specific plan is as follows: 1. The mobile terminal detected that the media could not be downloaded or that the complete media source could not be obtained directly.
[0119] 2. The mobile terminal determines whether the current media passes through a system-accessible LE Audio encoding link and generates an LC3 encoded frame that can be mirrored by the system.
[0120] 3. If the conditions are met, enable the LC3 encoded frame mirroring module in the Bluetooth audio transmission module (or other modules mentioned above).
[0121] 4. The LC3 encoded frame mirroring module divides LC3 encoded frames of the same batch or corresponding timing into two paths: one path is sent to the Bluetooth headset while maintaining the original path; the other path is copied to the VisionBuds Service of the mobile terminal.
[0122] 5. VisionBuds Service appends media playback timestamps, headphone clock, Bluetooth transmission time, playback session identifier, headphone connection status, and latency estimation information (i.e., device transmission latency) to the copied LC3 encoded frames.
[0123] 6. The mobile terminal uploads the media reference stream to the cloud.
[0124] 7. The headset only collects ambient audio and headset timestamps, and transmits them back to the mobile terminal via Bluetooth.
[0125] 8. The cloud aligns and fuses the ambient audio and LC3 encoded frames based on the playback timestamp of the LC3 media reference stream and the ambient audio acquisition timestamp to form listening and recording analysis data.
[0126] In this embodiment, the LC3 encoded frame is a compressed Bluetooth audio encoded frame, and its data size is typically smaller than that of a PCM audio frame. By copying this encoded frame and uploading it to the cloud, the repeated acquisition and transmission of media audio by the headphones can be reduced.
[0127] Option 3: Uploading only the playback timeline for high-security media: For highly secure media, if its LC3 encoded frames, packets, or output buffers are located in a protected domain, trusted execution environment, secure audio path, secure decoder, protected buffer, or controlled hardware path, and the ordinary system cannot or should not obtain reproducible LC3 encoded frames, then the mobile terminal will not copy the LC3 encoded frames. For highly secure media, its data flow method is as follows: Figure 8 As shown, firstly, for encrypted media streams, the LC3 encoded frames are processed by a digital rights management plugin (DRM Plugin) / Original Equipment Manufacturer Cryptography (OEMCrypto) module, storing them in the TEE / secure decoder / secure audio path, thereby enabling the media stream to be output in a protected manner.
[0128] Based on this, in this scenario, the mobile terminal adopts a timeline-only playback mode. Simply put, the mobile terminal does not copy LC3 encoded frames; it only generates a playback timeline, with the cloud obtaining the reference source through authorized channels. In other words, the mobile terminal does not upload audio data, does not upload reproducible audio encoded frames, and does not bypass DRM to obtain audio frames; it only uploads playback timeline information (i.e., audio playback status) such as content identifiers, playback position, playback status changes, and timestamp mappings. The cloud, based on its authorization relationships with content platforms, copyright holders, or DRM service providers, obtains the corresponding reference audio tracks, lyrics, subtitles, ASR text, audio fingerprints, acoustic features, or other reference materials, and then performs time alignment and fusion with the ambient audio transmitted back from the headphones.
[0129] The specific plan is as follows: 1. The mobile terminal detects that the current media is of a strong security type, such as the media passing through DRM Plugin / OEMCrypto, TEE, Secure Decoder, Secure Audio Path, or a protected output path.
[0130] 2. The mobile terminal determines whether the LC3 encoding, packet, or output buffer is located in a protected domain, trusted execution environment, Secure Audio Path, Secure DSP, protected buffer, or controlled hardware path.
[0131] 3. If the LC3 encoded frame cannot be securely exported from the ordinary system side, or if the policy does not allow the export of reproducible audio content, then the mobile terminal will not copy the LC3 encoded frame.
[0132] 4. The mobile terminal generates playback timeline information (i.e., audio playback status), including content platform identifier, content ID, playback start and end positions, playback speed, playback status changes, playback session identifier, mapping relationship between the mobile terminal clock and media playback timestamp, mapping relationship between the headphone clock and the mobile terminal clock, and Bluetooth playback latency estimation (i.e., device transmission latency).
[0133] 5. The headset only collects ambient audio, user operation events, and headset timestamps.
[0134] 6. The mobile terminal will upload the playback timeline and environmental audio information to the cloud.
[0135] 7. The cloud obtains the corresponding reference source based on the content ID (data identifier) and playback timeline through the authorization relationship with the content platform, copyright holder or DRM service provider.
[0136] 8. The cloud will time-align and fuse the authorized reference source with the ambient audio transmitted back from the headphones to generate listening comprehension analysis data.
[0137] As can be seen, this application includes a media reference data acquisition method determination module on the mobile terminal side. This module selects the processing method in the following order: Determine if the media is downloadable or legally accessible to the mobile terminal. If so, use the downloadable media processing flow. If not downloadable, determine if the current media forms an LC3 encoded frame in a normally accessible LE Audio encoding link, and if this LC3 encoded frame is allowed to be exported as a transcription reference stream by the system. If so, copy the LC3 encoded frame and upload it to the cloud. If the LC3 encoding, packet, or output buffer is located in a protected domain, TEE, Secure Audio Path, protected buffer, or controlled hardware path, or if the policy does not allow the export of reproducible audio content, then do not copy the LC3 encoded frame and use the timeline-only playback mode.
[0138] Based on this, in order to ensure that the media reference data acquired by the mobile terminal accurately corresponds to the ambient audio collected by the headset, this application can establish a mapping relationship between multiple time axes, including the media playback time axis, the monotonic clock of the mobile terminal system, the headset acquisition clock, and the cloud processing time axis.
[0139] In the downloadable media solution, the cloud aligns the media file playback position with the headphone ambient audio acquisition timestamp. In the LC3 encoded frame copying solution, the cloud aligns the LC3 encoded frame playback timestamp, Bluetooth transmission time, and headphone acquisition timestamp. In the timeline-only playback mode, the cloud extracts or locates the corresponding reference material from the authorized reference source based on the content ID, playback start and end positions, and mobile terminal / headphone timestamp mapping, and aligns it with the ambient audio.
[0140] In summary, this application has the following advantages: 1. This application can significantly reduce the uplink bandwidth occupied by the headphone end when transmitting media audio via Bluetooth.
[0141] 2. This application can avoid the repeated transmission of media audio from the mobile terminal to the headphones and then recorded and transmitted back by the headphones.
[0142] 3. For downloadable media, this application directly uses the media source obtained by the mobile terminal to improve the quality of the reference data.
[0143] 4. For media that cannot be downloaded, this application obtains a media reference stream that approximates the actual content played by the headphones by copying LC3 encoded frames.
[0144] 5. For high-security media, this application does not bypass DRM or copy protected LC3 encoded frames, but achieves audio-visual analysis by only playing the timeline and cloud-licensed reference sources.
[0145] 6. The earphone mainly collects ambient audio and timestamps, which helps reduce the computation, storage, power consumption and Bluetooth transmission pressure on the earphone side.
[0146] 7. This application has the ability to classify and downgrade media, covering various media scenarios such as downloadable, non-downloadable, and protected output.
[0147] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0148] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0149] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0150] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An audio data processing method, the method comprising: In response to the triggering of the electronic device's note-taking function, audio information corresponding to the audio data is obtained; wherein, the electronic device is capable of outputting the target audio corresponding to the audio data through an audio device; Receive ambient audio collected by the audio device; Based on the ambient audio and the audio information, the dictation content is obtained; The transcribed content can characterize the output audio collected during the process of the audio device outputting the target audio.
2. The method according to claim 1, wherein obtaining the audio information corresponding to the audio data includes: Determine the available attributes of the audio data or the available attributes of the audio frame corresponding to the audio data; The audio frame is a data frame obtained by encoding and decoding the audio data; According to the available attributes, audio information is obtained using the corresponding acquisition method; Different available attributes correspond to different acquisition methods.
3. The method according to claim 2, wherein when the obtainable attribute representation can directly obtain the audio data, obtaining the audio information includes: The audio data is read as audio information from the local storage area of the electronic device or from the server to which the electronic device is connected.
4. The method according to claim 3, wherein obtaining the transcription content based on the ambient audio and the audio information comprises: Based on the audio playback schedule provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, the audio data is time-aligned with the ambient audio to obtain the transcribed content.
5. The method according to claim 2, wherein, when the obtainable attribute characterization allows the acquisition of the audio frame corresponding to the audio data, the acquisition of audio information includes: During the encoding and decoding process of the audio data by the electronic device, the audio frames output by the electronic device during encoding or decoding are obtained as audio information.
6. The method according to claim 5, wherein obtaining the transcription content based on the ambient audio and the audio information includes: At least according to the audio frame playback timestamp provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, the audio frames output by the electronic device (encoded or decoded) are time-aligned with the ambient audio to obtain the transcribed content.
7. The method according to claim 5, wherein the audio frame output by the electronic device encoding or decoding is a decoded frame obtained by decoding the audio data through the decoder in the electronic device; Alternatively, the audio frame output by the electronic device through encoding or decoding is an encoded frame obtained by encoding the decoded frame through the encoder in the electronic device.
8. The method according to claim 2, wherein when the acquireable attribute characterizing the audio data and its corresponding audio frame are prohibited from acquisition, the step of obtaining audio information includes: The audio playback status is obtained during the process of the electronic device outputting the audio data to the audio device; Audio information is generated based on the audio playback status and the data identifier of the audio data; The data identifier is used to uniquely identify the object that provides the audio data and the audio data itself.
9. The method according to claim 8, wherein obtaining the transcription content based on the ambient audio and the audio information comprises: Based on the data identifier and audio playback status in the audio information, obtain at least one piece of audio reference information corresponding to the audio data; The audio reference information characterizes the audio features of the audio data; Based on the audio playback schedule provided by the electronic device, the audio acquisition timestamp provided by the audio device, and the device transmission delay, the audio reference information is time-aligned with the ambient audio to obtain the transcribed content.
10. An electronic device, comprising: A communication module used to communicate with audio devices; A processor is configured to, in response to the triggering of the note-taking function of an electronic device, obtain audio information corresponding to audio data; wherein the electronic device outputs target audio corresponding to the audio data through the audio device; receives ambient audio collected by the audio device through the communication module; and obtains note-taking content based on the ambient audio and the audio information; The transcribed content can characterize the output audio collected during the process of the audio device outputting the target audio.
