sandrohanea / whisper.net

Whisper.net. Speech to text made simple using Whisper Models
MIT License
534 stars 82 forks source link

bugfix for max file size error #47

Closed GFNiko closed 1 year ago

GFNiko commented 1 year ago

bugfix for error System.Net.Http.HttpRequestException: Cannot write more bytes to the buffer than the configured maximum buffer size: 2147483647 when trying to download the large model file. Solution is from here

sandrohanea commented 1 year ago

Hello @GFNiko, Thanks for the fix!

Indeed, it's better to not create the buffer in this case and return as soon as the headers are retrieved.