处理转录文本(transcript)的组件。 你可以配置想要看到哪些转录文本以及想要听到哪些。 还可以设置某些限制。
| 属性 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
config |
UIConfig |
❌ | createDefaultConfig() |
配置对象 |
meeting |
Meeting |
✅ | - | Meeting 对象 |
states |
States |
✅ | - | States 对象 |
t |
RtkI18n |
❌ | useLanguage() |
语言 |
import { RtkTranscripts } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkTranscripts />;
}import { RtkTranscripts } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkTranscripts
meeting={meeting}
/>
);
}