diff --git a/README.md b/README.md index 168ff1f..0adc80c 100644 --- a/README.md +++ b/README.md @@ -9,23 +9,22 @@ This operator uses reads the waveform of an audio file and then applies VGGish t ## Interface ```python -__call__(self, audio_path: str) +__call__(self, datas: List[NamedTuple('data', [('audio', 'ndarray'), ('sample_rate', 'int')])]) ``` **Args:** -- audio_path: - - the input audio path - - supported types: str +- datas: + - a named tuple including audio data in numpy.ndarray and sample rate in integer **Returns:** The Operator returns a tuple Tuple[('embs', numpy.ndarray)] containing following fields: -- embs: +- vec: - embeddings of the audio - data type: `numpy.ndarray` - - shape: (num_clips,128) + - shape: (num_clips, 128) ## Requirements