Skip to content

Commit

Permalink
tensorflow: add tensorflow.audio (#11441)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard authored Mar 1, 2024
1 parent ea2002d commit 08ddbe5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stubs/tensorflow/tensorflow/audio.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import tensorflow as tf
from tensorflow._aliases import Integer, StringTensorCompatible

def decode_wav(
contents: StringTensorCompatible, desired_channels: int = -1, desired_samples: int = -1, name: str | None = None
) -> tuple[tf.Tensor, tf.Tensor]: ...
def encode_wav(audio: tf.Tensor, sample_rate: Integer, name: str | None = None) -> tf.Tensor: ...

0 comments on commit 08ddbe5

Please sign in to comment.