Debian Codegraph @

stubs/calibre_extensions/ffmpeg.pyi

raw
1 def resample_raw_audio_16bit(
2 input_data: bytes,
3 input_sample_rate: int,
4 output_sample_rate: int,
5 input_num_channels: int = 1,
6 output_num_channels: int = 1,
7 ) -> bytes:
8 "resample_raw_audio(input_data, input_sample_rate, output_sample_rate, input_num_channels=1, output_num_channels=1) -> Return resampled raw audio data."
9 pass
10
11 def transcode_single_audio_stream(
12 input_file_like_object: object,
13 output_file_like_object: object,
14 output_bitrate: int = 0,
15 container_format: str = '',
16 output_codec_name: str = '',
17 ) -> None:
18 """transcode_single_audio_stream(input_file_like_object, output_file_like_object,
19 output_bitrate: int = auto_select, container_format: str = auto_detect,
20 output_codec_name: str = auto_detect) -> Transcode an input file containing a single
21 audio stream to an output file. The format is autodetected from output file name or can
22 be specified using the container_format and output_codec_name parameters. The output
23 bitrate is by default automatically chosen based on the output codec.
24 """
25 pass
26
27 def wav_header_for_pcm_data(audio_data_size: int = 0, sample_rate: int = 22050, num_channels: int = 1) -> bytes:
28 "wav_header_for_pcm_data(audio_data_size=0, sample_rate=22050, num_channels=1) -> WAV header for specified amount of PCM data as bytestring"
29 pass