Unlock instant, AI-driven research and patent intelligence for your innovation.

Generating method for audio file and playing method and device for audio file

An audio file and file technology, applied in the information field, can solve problems such as high CPU usage, time-consuming, audio cannot be played back in the first time, and achieve the effect of progress control and size reduction

Active Publication Date: 2015-01-21
IFLYTEK CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, using a constant bit rate in the first method means that more traditional encoding formats, such as MP3, are often used. In the case of ensuring sound quality, a larger bit rate is required, which will increase the bandwidth of the live broadcast. more pressure, and the CPU usage of traditional encoding formats will be relatively high when encoding
In the second method, because the transcoding process is often time-consuming, the audio after the live broadcast cannot be played back at the first time, so the real-time performance of the audio file is not high, and the audio with a non-constant bit rate is Cannot control progress during playback
[0007] However, it can be seen from Table 1 that when the total duration of the audio file is longer, the more value pairs need to be stored, and the larger the occupied space will be, resulting in the increase of the audio file

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Generating method for audio file and playing method and device for audio file
  • Generating method for audio file and playing method and device for audio file
  • Generating method for audio file and playing method and device for audio file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

[0030] A method for generating an audio file, a method for playing it, and an apparatus for playing an audio file according to the embodiments of the present invention will be described below with reference to the accompanying drawings.

[0031] figure 1 It is a flowchart of a method for generating an audio file according to an embodiment of the present invention. like figure 1 As shown, the generation method of the audio file may include:

[0032] S101. Acquire audio data and a total duration of the audio data, and encode the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a generating method for an audio file and a playing method and device for the audio file. The generating method includes the steps that audio data and the total time length of the audio data are obtained, and the audio data are coded according to a preset time length step value; a preset value of the reserved head of the audio file is obtained; according to the total time length of the audio data, the preset time length step value, the coded audio code data and the preset value of the reserved head of the file, a key frame numerical value pair sequence is generated; cubic spline interpolating is performed on the key frame numerical value pair sequence to generate a cubic spline function written into the head of the audio file, and the coded audio code data are written into the audio file. On the premise that only a few storage spaces are added, key frames are added to the audio file through cubic spline interpolating, the problems that common key frame storage occupies resources and is poor in precision are avoided, and meanwhile progress control over playing of the audio file is achieved.

Description

technical field [0001] The present invention relates to the field of information technology, in particular to a method and device for generating audio files, and a method and device for playing audio files. Background technique [0002] In related technologies, the following two methods are usually used to encode the original audio data to generate audio files: the first method uses a constant bit rate to encode the original audio data; the second method uses a non-constant bit rate (such as variable length bit rate) to encode the original audio data, first, the audio file is saved as a non-constant bit rate, and then converted to a constant bit rate by a format conversion tool and played back. [0003] However, using a constant bit rate in the first method means that more traditional encoding formats, such as MP3, are often used. In the case of ensuring sound quality, a larger bit rate is required, which will increase the bandwidth of the live broadcast. More pressure will...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/439H04N21/85
CPCH04N21/439H04N21/8547
Inventor 施国强唐义平聂小林刘庆峰
Owner IFLYTEK CO LTD