Defined in generated file:
Encode audio data using the WAV file format.
tf.audio.encode_wav( audio, sample_rate, name=None )
金坛期货配资This operation will generate a string suitable to be saved out to create a .wav audio file. It will be encoded in the 16-bit PCM format. It takes in float values in the range -1.0f to 1.0f, and any outside that value will be clamped to that range.
audio is a 2-D float Tensor of shape
sample_rate金坛期货配资 is a scalar Tensor holding the rate to use (e.g. 44100).
float32. 2-D with shape
int32. Scalar containing the sample frequency.
name: A name for the operation (optional).
Tensor of type