File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -102,25 +102,6 @@ describe("ElevenLabs API Tests", () => {
102
102
expect ( Array . isArray ( transcription . words ) ) . toBeTruthy ( ) ;
103
103
expect ( transcription . words . length ) . toBeGreaterThan ( 0 ) ;
104
104
} ) ;
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
- } ) ;
124
105
} ) ;
125
106
126
107
describe ( "audioIsolation" , ( ) => {
You can’t perform that action at this time.
0 commit comments