@@ -444,7 +444,7 @@ bool Audio::openai_speech(const String& api_key, const String& model, const Stri
444444 return false ;
445445 }
446446 xSemaphoreTake (mutex_playAudioData, portMAX_DELAY);
447- AUDIO_INFO ( " Connect to new host: \" %s \" " , host);
447+
448448 setDefaults ();
449449 m_f_ssl = true ;
450450
@@ -485,7 +485,7 @@ bool Audio::openai_speech(const String& api_key, const String& model, const Stri
485485 _client = static_cast <WiFiClient*>(&clientsecure);
486486
487487 uint32_t t = millis ();
488- if (m_f_Log) AUDIO_INFO (" connect to %s on port %d path %s " , host, port, path );
488+ AUDIO_INFO (" Connect to: \" %s \" " , host);
489489 res = _client->connect (host, port, m_timeout_ms_ssl);
490490 if (res) {
491491 uint32_t dt = millis () - t;
@@ -632,7 +632,7 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
632632
633633 uint32_t t = millis ();
634634
635- AUDIO_INFO (" connect to %s on port %d path %s " , hostwoext, port, extension);
635+ AUDIO_INFO (" connect to: \" %s \" on port %d path \" %s \" " , hostwoext, port, extension);
636636
637637 _client->setTimeout (m_f_ssl ? m_timeout_ms_ssl : m_timeout_ms);
638638 res = _client->connect (hostwoext, port);
@@ -642,7 +642,6 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
642642 AUDIO_INFO (" %s has been established in %lu ms, free Heap: %lu bytes" , m_f_ssl ? " SSL" : " Connection" , (long unsigned int )dt, (long unsigned int )ESP.getFreeHeap ());
643643 m_f_running = true ;
644644 }
645-
646645 m_expectedCodec = CODEC_NONE;
647646 m_expectedPlsFmt = FORMAT_NONE;
648647
@@ -746,7 +745,7 @@ bool Audio::httpPrint(const char* host) {
746745 hostwoext[pos_colon] = ' \0 ' ; // Host without portnumber
747746 }
748747
749- AUDIO_INFO (" new request : \" %s\" " , host);
748+ AUDIO_INFO (" connect to : \" %s\" " , host);
750749
751750 char rqh[strlen (h_host) + 200 ]; // http request header
752751 rqh[0 ] = ' \0 ' ;
@@ -961,6 +960,7 @@ bool Audio::connecttospeech(const char* speech, const char* lang) {
961960 speechBuff = NULL ;
962961 }
963962 _client = static_cast <WiFiClient*>(&client);
963+ AUDIO_INFO (" connect to \" %s\" " , host);
964964 if (!_client->connect (host, 80 )) {
965965 log_e (" Connection failed" );
966966 xSemaphoreGive (mutex_playAudioData);
0 commit comments