Skip to content

Commit 342853d

Browse files
committed
Make TextToAudioPipeline parameters optional
1 parent 497441f commit 342853d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pipelines/text-to-audio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { AutoModel } from '../models.js';
2727
*
2828
* @callback TextToAudioPipelineCallback Generates speech/audio from the inputs.
2929
* @param {string|string[]} texts The text(s) to generate.
30-
* @param {TextToAudioPipelineOptions} options Parameters passed to the model generation/forward method.
30+
* @param {TextToAudioPipelineOptions} [options] Parameters passed to the model generation/forward method.
3131
* @returns {Promise<TextToAudioOutput>} An object containing the generated audio and sampling rate.
3232
*
3333
* @typedef {TextToAudioPipelineConstructorArgs & TextToAudioPipelineCallback & Disposable} TextToAudioPipelineType

0 commit comments

Comments
 (0)