Skip to content

Commit e40953a

Browse files
committed
currentHost is empty, kaloprojects issue 4
1 parent 60a869e commit e40953a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Audio.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
audio.cpp
44
55
Created on: Oct 28.2018 */char audioI2SVers[] ="\
6-
Version 3.3.2n ";
6+
Version 3.3.2o ";
77
/* Updated on: Jul 10.2025
88
99
Author: Wolle (schreibfaul1)
@@ -512,6 +512,7 @@ bool Audio::openai_speech(const String& api_key, const String& model, const Stri
512512
if (res) {
513513
uint32_t dt = millis() - t;
514514
m_lastHost.assign(host.get());
515+
m_currentHost.clone_from(host);
515516
AUDIO_INFO("%s has been established in %lu ms", m_f_ssl ? "SSL" : "Connection", (long unsigned int)dt);
516517
m_f_running = true;
517518
}
@@ -525,6 +526,7 @@ bool Audio::openai_speech(const String& api_key, const String& model, const Stri
525526
if (response_format == "opus") m_expectedCodec = CODEC_OPUS;
526527
if (response_format == "aac") m_expectedCodec = CODEC_AAC;
527528
if (response_format == "flac") m_expectedCodec = CODEC_FLAC;
529+
528530
m_dataMode = HTTP_RESPONSE_HEADER;
529531
m_f_tts = true;
530532
} else {

0 commit comments

Comments
 (0)