File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ Transcribe audio instantly:
7777- AAC
7878
7979** File requirements:**
80- - Maximum size: 100MB
80+ - Maximum size: 20MB
8181- Maximum duration: 60 minutes
8282- Minimum duration: 1 second
8383
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ Supported audio formats:
130130- AAC
131131
132132File requirements:
133- - Maximum size: 100MB
133+ - Maximum size: 20MB
134134- Maximum duration: 60 minutes
135135- Sample rate: 16kHz or higher recommended
136136
@@ -160,7 +160,7 @@ try {
160160 await fishAudio .speechToText .convert ({ audio: createReadStream (" audio.mp3" ) });
161161} catch (e : any ) {
162162 const status = e ?.status || e ?.response ?.status ;
163- if (status === 413 ) console .error (" Audio file too large (max 100MB )" );
163+ if (status === 413 ) console .error (" Audio file too large (max 20MB )" );
164164 else if (status === 400 ) console .error (" Invalid audio format" );
165165 else throw e ;
166166}
You can’t perform that action at this time.
0 commit comments