diff --git a/R/speech_to_text.R b/R/speech_to_text.R index e7e978b..21be5ea 100644 --- a/R/speech_to_text.R +++ b/R/speech_to_text.R @@ -385,6 +385,10 @@ use_azure_whisper_stt <- function( # Make the HTTP request response <- httr::POST(url, headers, body = body) + if (response$status_code == 424) { + stop("Fatal error: ", httr::content(response, "text")) + } + # Check response status if (response$status_code != 200) {