diff --git a/app/Services/TelegramBotService.php b/app/Services/TelegramBotService.php index 9255c65..6bd6468 100644 --- a/app/Services/TelegramBotService.php +++ b/app/Services/TelegramBotService.php @@ -242,7 +242,7 @@ class TelegramBotService return; } - $this->send($chatId, "🎙️ Escuché: _\"{$resultado['texto']}\"_"); + $this->send($chatId, "🎙️ Escuché: _\"{$resultado['texto']}\"_\nProcesando..."); $this->handleText($chatId, $resultado['texto'], $nombre); } catch (\Throwable $e) { @@ -262,8 +262,9 @@ class TelegramBotService } try { - // response_format como query param (algunos servidores no lo leen del form) - $url = rtrim($whisperUrl, '?') . (str_contains($whisperUrl, '?') ? '&' : '?') . 'response_format=json'; + // response_format y language como query params + $sep = str_contains($whisperUrl, '?') ? '&' : '?'; + $url = rtrim($whisperUrl, '?') . $sep . 'response_format=json&language=es'; $response = Http::timeout(60) ->withBasicAuth('whisper', $whisperToken)