From c45ac0a195034a235baf5ab7253fcba29cd4e474 Mon Sep 17 00:00:00 2001 From: Sakurapainting Date: Thu, 2 Apr 2026 08:43:13 +0800 Subject: [PATCH] fix(gateway): use asr transcriber in channel-only runtime --- pkg/gateway/channel_only.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gateway/channel_only.go b/pkg/gateway/channel_only.go index fd0180364..53ca7cae4 100644 --- a/pkg/gateway/channel_only.go +++ b/pkg/gateway/channel_only.go @@ -13,6 +13,7 @@ import ( "time" "github.com/sipeed/picoclaw/pkg/agent" + "github.com/sipeed/picoclaw/pkg/audio/asr" "github.com/sipeed/picoclaw/pkg/bus" "github.com/sipeed/picoclaw/pkg/channels" "github.com/sipeed/picoclaw/pkg/config" @@ -20,7 +21,6 @@ import ( "github.com/sipeed/picoclaw/pkg/logger" "github.com/sipeed/picoclaw/pkg/media" "github.com/sipeed/picoclaw/pkg/providers" - "github.com/sipeed/picoclaw/pkg/voice" ) const ( @@ -145,7 +145,7 @@ func setupAndStartChannelServices( agentLoop.SetChannelManager(runningServices.ChannelManager) agentLoop.SetMediaStore(runningServices.MediaStore) - if transcriber := voice.DetectTranscriber(cfg); transcriber != nil { + if transcriber := asr.DetectTranscriber(cfg); transcriber != nil { agentLoop.SetTranscriber(transcriber) logger.InfoCF("voice", "Transcription enabled (agent-level)", map[string]any{"provider": transcriber.Name()}) }