[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.contrib.ffmpeg.encode_audio\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/ffmpeg/ffmpeg_ops.py#L77-L101) |\n\nCreates an op that encodes an audio file using sampled audio from a tensor. (deprecated) \n\n tf.contrib.ffmpeg.encode_audio(\n audio, file_format=None, samples_per_second=None\n )\n\n| **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed after 2018-09-04. Instructions for updating: tf.contrib.ffmpeg will be removed in 2.0, the support for video and audio will continue to be provided in tensorflow-io: \u003chttps://github.com/tensorflow/io\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| `audio` | A rank-2 `Tensor` that has time along dimension 0 and channels along dimension 1. Dimension 0 is `samples_per_second * length_in_seconds` long. |\n| `file_format` | The type of file to encode, as a string or rank-0 string tensor. \"wav\" is the only supported format. |\n| `samples_per_second` | The number of samples in the audio tensor per second of audio, as an `int` or rank-0 `int32` tensor. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A scalar tensor that contains the encoded audio in the specified file format. ||\n\n\u003cbr /\u003e"]]