diff options
Diffstat (limited to 'tensorflow/g3doc/api_docs/python/functions_and_classes/shard8/tf.contrib.ffmpeg.decode_audio.md')
-rw-r--r-- | tensorflow/g3doc/api_docs/python/functions_and_classes/shard8/tf.contrib.ffmpeg.decode_audio.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard8/tf.contrib.ffmpeg.decode_audio.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard8/tf.contrib.ffmpeg.decode_audio.md new file mode 100644 index 0000000000..31b9cba01f --- /dev/null +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard8/tf.contrib.ffmpeg.decode_audio.md @@ -0,0 +1,25 @@ +### `tf.contrib.ffmpeg.decode_audio(contents, file_format=None, samples_per_second=None, channel_count=None)` {#decode_audio} + +Create an op that decodes the contents of an audio file. + +##### Args: + + +* <b>`contents`</b>: The binary contents of the audio file to decode. This is a + scalar. +* <b>`file_format`</b>: A string specifying which format the contents will conform + to. This can be mp3, ogg, or wav. +* <b>`samples_per_second`</b>: The number of samples per second that is assumed. + In some cases, resampling will occur to generate the correct sample + rate. +* <b>`channel_count`</b>: The number of channels that should be created from the + audio contents. If the contents have more than this number, then + some channels will be merged or dropped. If contents has fewer than + this, then additional channels will be created from the existing ones. + +##### Returns: + + A rank 2 tensor that has time along dimension 0 and channels along + dimension 1. Dimension 0 will be `samples_per_second * length` wide, and + dimension 1 will be `channel_count` wide. + |