@somecat/ai-assist-sdk 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,22 @@
1
1
  import { default as React } from 'react';
2
- import { VoiceConfig, VoiceStatus, VoiceResult, VoiceError } from '../../core/voice';
2
+ import { VoiceStatus, VoiceResult, VoiceError } from '../../core/voice';
3
+ import { AiAssistTheme } from '../../core/types';
3
4
  export interface VoiceInputProps {
4
- /** 百度实时语音识别配置 */
5
- config: VoiceConfig;
5
+ /** 识别语言(BCP-47),默认 'zh-CN' */
6
+ lang?: string;
7
+ /** 是否连续识别,默认 true */
8
+ continuous?: boolean;
9
+ /** 是否返回临时结果,默认 true */
10
+ interimResults?: boolean;
11
+ /** 主题模式 */
12
+ theme?: AiAssistTheme;
6
13
  /** 占位提示文案 */
7
14
  placeholder?: string;
8
15
  /** 按钮文案:开始录音 */
9
16
  startText?: string;
10
17
  /** 按钮文案:停止录音 */
11
18
  stopText?: string;
12
- /** 按钮文案:连接中 */
19
+ /** 按钮文案:启动中 */
13
20
  connectingText?: string;
14
21
  /** 按钮文案:识别中 */
15
22
  stoppingText?: string;