Home
last modified time | relevance | path

Searched refs:wav_string (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io.cc137 string* wav_string) { in EncodeAudioAsS16LEWav() argument
147 if (wav_string == nullptr) { in EncodeAudioAsS16LEWav()
175 wav_string->resize(file_size); in EncodeAudioAsS16LEWav()
176 char* data = &wav_string->at(0); in EncodeAudioAsS16LEWav()
211 Status DecodeLin16WaveAsFloatVector(const string& wav_string, in DecodeLin16WaveAsFloatVector() argument
216 TF_RETURN_IF_ERROR(ExpectText(wav_string, kRiffChunkId, &offset)); in DecodeLin16WaveAsFloatVector()
218 TF_RETURN_IF_ERROR(ReadValue<uint32>(wav_string, &total_file_size, &offset)); in DecodeLin16WaveAsFloatVector()
219 TF_RETURN_IF_ERROR(ExpectText(wav_string, kRiffType, &offset)); in DecodeLin16WaveAsFloatVector()
220 TF_RETURN_IF_ERROR(ExpectText(wav_string, kFormatChunkId, &offset)); in DecodeLin16WaveAsFloatVector()
223 ReadValue<uint32>(wav_string, &format_chunk_size, &offset)); in DecodeLin16WaveAsFloatVector()
[all …]
Dwav_io.h46 string* wav_string);
55 Status DecodeLin16WaveAsFloatVector(const string& wav_string,
/external/tensorflow/tensorflow/core/kernels/
Ddecode_wav_op.cc43 const string wav_string = contents.scalar<string>()(); in Compute() local
44 OP_REQUIRES(context, wav_string.size() <= std::numeric_limits<int>::max(), in Compute()
46 wav_string.size())); in Compute()
54 wav_string, &decoded_samples, &decoded_sample_count, in Compute()
/external/tensorflow/tensorflow/examples/wav_to_spectrogram/
Dwav_to_spectrogram_test.cc30 tensorflow::string wav_string; in TEST() local
32 tensorflow::wav::EncodeAudioAsS16LEWav(audio, 44100, 1, 8, &wav_string)); in TEST()
34 input_wav, wav_string)); in TEST()
/external/tensorflow/tensorflow/examples/speech_commands/
Dlabel_wav.cc144 string wav_string; in main() local
146 tensorflow::Env::Default(), wav, &wav_string); in main()
152 wav_tensor.scalar<string>()() = wav_string; in main()
Dtest_streaming_accuracy.cc210 string wav_string; in main() local
212 tensorflow::Env::Default(), wav, &wav_string); in main()
222 wav_string, &audio_data, &sample_count, &channel_count, &sample_rate); in main()