UNPKG

@daily-co/daily-react

Version:

Daily React makes it easier to integrate [@daily-co/daily-js](https://www.npmjs.com/package/@daily-co/daily-js) in React applications.

42 lines (41 loc) 1.38 kB
import { DailyTranscriptionDeepgramOptions } from '@daily-co/daily-js'; import React from 'react'; export interface Transcription { session_id: string; user_id: string; text: string; timestamp: string; is_final: boolean; } interface TranscriptionState extends DailyTranscriptionDeepgramOptions { /** * Determines whether an error occurred during the last transcription attempt. */ error?: boolean; /** * Determines whether a transcription is currently running or not. */ isTranscribing: boolean; /** * Contains the date when the 'transcription-started' event was received. * This doesn't necessarily match the date the transcription was actually started. */ transcriptionStartDate?: Date; /** * Contains the session_id of the participant who started the transcription. */ startedBy?: string; /** * Contains the session_id of the participant who updated the transcription. */ updatedBy?: string; /** * Contains the transcriptions that we received. */ transcriptions: Transcription[]; } export declare const transcriptionState: import("jotai/esm/").PrimitiveAtom<TranscriptionState> & { init: TranscriptionState; }; export declare const DailyTranscriptions: React.FC<React.PropsWithChildren<{}>>; export {};