(wav_audio, frames_per_second)
return res
Transforms a wav-encoded audio string into number of frames.
Transforms a wav-encoded audio string into number of frames.
Transforms a wav - encoded audio string into number of frames .
def wav_to_num_frames_op(wav_audio, frames_per_second):
  """Transforms a wav-encoded audio string into number of frames."""
  res = tf.py_func(
      functools.partial(wav_to_num_frames, frames_per_second=frames_per_second),
      [wav_audio],
      tf.int32,
      name='wav_to_num_frames_op')
  res.set_shape(())
  return res
def wav_to_num_frames_op ( wav_audio , frames_per_second ) : res = tf . py_func ( functools . partial ( wav_to_num_frames , frames_per_second = frames_per_second ) , [ wav_audio ] , tf . int32 , name = 'wav_to_num_frames_op' ) res . set_shape ( ( ) ) return res