copied
Readme
Files and versions
893 B
Audio Decode Implementation With PyAV
author: Junjie Jiang
Description
Audio Decode converts the encoded audio back to uncompressed audio frames. In most cases, audio decoding is the first step of an audio processing pipeline.
Using the default audio_decode implementation and writing the pipeline in the simplified way
Code Example
import towhee
towhee.glob('./music.mp3')
.audio_decode().flatten().show(limit=4)
Factory Constructor
Create the operator via the following factory method
audio_decode.ffmpeg()
Interface
An audio decode operator takes an audio file path as input. It decodes the audio back to audio frames.
Args:
audio (str):
Audio file path.
Return (generator):
An generator over audio frames with type towhee.types.AudioFrame
.
893 B
Audio Decode Implementation With PyAV
author: Junjie Jiang
Description
Audio Decode converts the encoded audio back to uncompressed audio frames. In most cases, audio decoding is the first step of an audio processing pipeline.
Using the default audio_decode implementation and writing the pipeline in the simplified way
Code Example
import towhee
towhee.glob('./music.mp3')
.audio_decode().flatten().show(limit=4)
Factory Constructor
Create the operator via the following factory method
audio_decode.ffmpeg()
Interface
An audio decode operator takes an audio file path as input. It decodes the audio back to audio frames.
Args:
audio (str):
Audio file path.
Return (generator):
An generator over audio frames with type towhee.types.AudioFrame
.