Skip to content

Commit 6e4ee76

Browse files
committed
Remove STT streaming test
1 parent 89894c5 commit 6e4ee76

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/custom/client.test.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -102,25 +102,6 @@ describe("ElevenLabs API Tests", () => {
102102
expect(Array.isArray(transcription.words)).toBeTruthy();
103103
expect(transcription.words.length).toBeGreaterThan(0);
104104
});
105-
106-
it("convertAsStream", async () => {
107-
const client = new ElevenLabsClient();
108-
const audioFile = fs.readFileSync(DEFAULT_VOICE_FILE);
109-
const audioBlob = new Blob([audioFile], { type: "audio/mp3" });
110-
111-
const stream = await client.speechToText.convertAsStream({
112-
file: audioBlob,
113-
model_id: "scribe_v1",
114-
});
115-
116-
let transcriptionText = "";
117-
for await (const chunk of stream) {
118-
expect(typeof chunk.text).toBe("string");
119-
transcriptionText += chunk.text;
120-
}
121-
122-
expect(transcriptionText.length).toBeGreaterThan(0);
123-
});
124105
});
125106

126107
describe("audioIsolation", () => {

0 commit comments

Comments
 (0)