MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CreateAudioFile

Function CreateAudioFile

tensorflow/contrib/ffmpeg/default/ffmpeg_lib.cc:353–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353Status CreateAudioFile(const string& audio_format_id, int32 bits_per_second,
354 int32 samples_per_second, int32 channel_count,
355 const std::vector<float>& samples, string* output_data) {
356 if (audio_format_id != "wav") {
357 return Status(error::Code::INVALID_ARGUMENT,
358 "CreateAudioFile only supports the 'wav' audio format.");
359 }
360 *output_data = BuildWavFile(samples_per_second, channel_count, samples);
361 return Status::OK();
362}
363
364Status ReadVideoFile(const string& filename, std::vector<uint8>* output_data,
365 uint32* width, uint32* height, uint32* frames) {

Callers 2

EncodeFunction · 0.85
TESTFunction · 0.85

Calls 2

BuildWavFileFunction · 0.85
StatusClass · 0.50

Tested by 1

TESTFunction · 0.68