Hiyve Components - v1.0.0
    Preparing search index...

    Interface TranscriptionEntry

    Real-time transcription entry from speech-to-text.

    Represents a segment of transcribed speech. Transcriptions may arrive as partial results (isFinal: false) that are later replaced with final results (isFinal: true).

    Displaying transcriptions:

    function TranscriptionDisplay({ entries }: { entries: TranscriptionEntry[] }) {
    return (
    <div className="transcription">
    {entries.map((entry) => (
    <div
    key={entry.id}
    className={entry.isFinal ? 'final' : 'partial'}
    >
    <strong>{entry.userId}:</strong> {entry.text}
    </div>
    ))}
    </div>
    );
    }
    interface TranscriptionEntry {
        emotion?: string;
        engagement?: number;
        id: string;
        isFinal: boolean;
        moodAnalyzedAt?: number;
        moodConfidence?: number;
        sentiment?: "positive" | "negative" | "neutral";
        text: string;
        timestamp: Date;
        userId: string;
    }
    Index

    Properties

    emotion?: string

    Emotion classification (happy, sad, angry, etc.)

    engagement?: number

    Engagement level (0-1)

    id: string

    Unique transcription segment identifier

    isFinal: boolean

    Whether this is a final result (true) or partial/interim (false)

    moodAnalyzedAt?: number

    When the mood was analyzed

    moodConfidence?: number

    Confidence of the mood analysis (0-1)

    sentiment?: "positive" | "negative" | "neutral"

    Sentiment classification (positive, negative, neutral)

    text: string

    Transcribed text

    timestamp: Date

    When this transcription was received

    userId: string

    User ID of the speaker