Audio Processing Method for Selective Frame Decoding
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Large or long-duration audio files require complex and time-consuming decoding processes, leading to memory occupation issues and browser crashes in web front-end applications, which affects performance and timeliness.
Innovation Solution
An audio processing method that determines decoding start and end frame identifications in a preset frame sequence, acquires segment data for decoding, and decodes it to obtain target decoded data, allowing for on-demand decoding without full audio file decoding.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If full decoding of audio files is performed, then audio processing completeness is ensured, but memory consumption increases and browser crashes occur
Solution Approach 1:
The patent segments the audio file into multiple audio frames with associated frame identifications. Instead of decoding the entire audio file at once, the system decodes only the specific frames needed for processing. This segmentation approach reduces memory consumption by loading and decoding only necessary portions of the audio data while maintaining processing completeness through systematic frame selection.
2Reliability
If full decoding of audio files is performed, then audio processing completeness is ensured, but processing time increases and timeliness is affected
Solution Approach 1:
The patent divides the audio file into discrete frames and uses frame identification mechanisms to track and process only the necessary frames. This segmentation enables selective decoding of specific time segments rather than sequential decoding of the entire file, significantly reducing processing time while maintaining completeness through systematic frame processing.
Solution Approach 2:
The patent performs preliminary actions by pre-establishing frame identification mappings and audio frame metadata before actual decoding occurs. This preliminary preparation includes creating the frame sequence structure and pre-loading audio frame information, which enables rapid selective decoding without requiring full file processing, thus improving timeliness.
3Quantity of substance
If frame-based selective decoding is implemented, then memory consumption is reduced, but decoding complexity increases
Solution Approach 1:
The patent performs preliminary actions by pre-establishing frame identification mappings and audio frame metadata before actual decoding occurs. This preliminary preparation includes creating the frame sequence structure and pre-loading audio frame information, which enables rapid selective decoding without requiring full file processing, thus improving timeliness.
4Loss of time
If frame-based selective decoding is implemented, then processing time is reduced, but implementation complexity increases
Solution Approach 1:
The patent segments the audio file into discrete frames with associated identifications and metadata. This segmentation approach, combined with systematic frame tracking mechanisms, enables efficient selective decoding that reduces processing time while managing implementation complexity through structured organization of audio data and processing logic.
Data Source
AI summary
Embodiments of the present disclosure provide an audio processing method, electronic apparatus and computer-readable storage medium. The method includes: determining a decoding start frame identification and a decoding end frame identification in a preset frame sequence, in which the preset frame sequence includes frame information of audio frames in at least one audio resource, the frame information includes a frame identification, the frame identification includes an audio resource identification and a frame index; acquiring segment data to be decoded in an audio resource associated with a corresponding audio resource identification according to the decoding start frame identification and the decoding end frame identification; and decoding the segment data to be decoded to obtain corresponding target decoded data.


