Skip to content

Commit 9cf944f

Browse files
authored
fix the espnet speech2text snippet (#381)
espnet/espnet_model_zoo#68
1 parent b2ccf35 commit 9cf944f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/lib/interfaces/Libraries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ model = Speech2Text.from_pretrained(
114114
)
115115
116116
speech, rate = soundfile.read("speech.wav")
117-
text, *_ = model(speech)`;
117+
text, *_ = model(speech)[0]`;
118118

119119
const espnetUnknown = () =>
120120
`unknown model type (must be text-to-speech or automatic-speech-recognition)`;

0 commit comments

Comments
 (0)