UNPKG

@mi-gpt/next

Version:

让小爱音箱「听你的」,解锁无限可能。

21 lines (18 loc) 519 B
import { ISpeaker } from '@mi-gpt/engine/base'; declare class SpeakerManager implements ISpeaker { /** * 播放文字、音频链接 */ play({ text, url }?: { text?: string; url?: string; }): Promise<boolean>; /** * 中断原来小爱的运行 * * 注意:重启需要大约 1-2s 的时间,在此期间无法使用小爱音箱自带的 TTS 服务 */ abortXiaoAI(): Promise<boolean>; } declare const MiSpeaker: SpeakerManager; export { MiSpeaker };