// // KBVoiceToTextManager.h // keyBoard // // Created by Mac on 2026/1/26. // #import NS_ASSUME_NONNULL_BEGIN @class KBVoiceInputBar; @class KBVoiceToTextManager; @protocol KBVoiceToTextManagerDelegate @optional - (void)voiceToTextManagerDidBeginRecording:(KBVoiceToTextManager *)manager; - (void)voiceToTextManagerDidEndRecording:(KBVoiceToTextManager *)manager; - (void)voiceToTextManagerDidCancelRecording:(KBVoiceToTextManager *)manager; @end /// 语音输入事件管理器,仅负责桥接 KBVoiceInputBar 的录音事件。 @interface KBVoiceToTextManager : NSObject @property(nonatomic, weak) id delegate; @property(nonatomic, weak, readonly) KBVoiceInputBar *inputBar; - (instancetype)initWithInputBar:(KBVoiceInputBar *)inputBar; @end NS_ASSUME_NONNULL_END