From a01115a848a3af67e96fcf885a4ff8787c9c0133 Mon Sep 17 00:00:00 2001 From: StillHammer Date: Sat, 29 Nov 2025 16:44:19 +0800 Subject: [PATCH] fix: Rename TranscriptionCallback to STTEngineCallback to avoid conflict MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ISTTEngine.hpp and ISTTService.hpp both defined TranscriptionCallback with different signatures: - ISTTEngine: void(const std::string& text) - ISTTService: void(const std::string& text, STTMode mode) This caused compilation errors due to conflicting declarations. Solution: Rename the low-level engine callback to STTEngineCallback to distinguish it from the high-level service callback. Fixes: Compilation errors in Phase 7.1 STT Service Layer - All 120 unit tests passing (282 assertions) - Build successful 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/shared/audio/ISTTEngine.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/audio/ISTTEngine.hpp b/src/shared/audio/ISTTEngine.hpp index a43a1a3..2a9a6db 100644 --- a/src/shared/audio/ISTTEngine.hpp +++ b/src/shared/audio/ISTTEngine.hpp @@ -8,9 +8,9 @@ namespace aissia { /** - * @brief Callback for transcription results + * @brief Callback for transcription results (low-level engine) */ -using TranscriptionCallback = std::function; +using STTEngineCallback = std::function; /** * @brief Interface for Speech-to-Text engines