From e3f05c0bb4c1c335d17c43466cefe598a633f078 Mon Sep 17 00:00:00 2001 From: Joshua Lochner Date: Sat, 27 Jan 2024 15:27:53 +0200 Subject: [PATCH] Update JSDoc --- src/processors.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/processors.js b/src/processors.js index e8eb109c0..0dbec5c0c 100644 --- a/src/processors.js +++ b/src/processors.js @@ -1604,7 +1604,12 @@ export class SeamlessM4TFeatureExtractor extends FeatureExtractor { /** * Asynchronously extracts features from a given audio using the provided configuration. * @param {Float32Array|Float64Array} audio The audio data as a Float32Array/Float64Array. - * @returns {Promise<{ input_features: Tensor, attention_mask?: Tensor }>} A Promise resolving to an object containing the extracted input features as a Tensor. + * @param {Object} options Optional parameters for feature extraction. + * @param {boolean} [options.padding=true] Whether to pad the sequence to a multiple of `pad_to_multiple_of`. + * @param {number} [options.pad_to_multiple_of=2] The number to pad the sequence to a multiple of. + * @param {boolean} [options.do_normalize_per_mel_bins=true] Whether or not to zero-mean unit-variance normalize the input per mel-channel. + * @param {boolean} [options.return_attention_mask=true] Whether to return the attention mask. + * @returns {Promise<{ input_features: Tensor, attention_mask?: Tensor }>} A Promise resolving to an object containing the extracted input features and attention masks as Tensors. */ async _call(audio, { padding = true,