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). Optional mood/sentiment fields are populated when mood analysis is enabled.

    Displaying transcriptions:

    function TranscriptionItem({ entry }: { entry: TranscriptionEntry }) {
    return (
    <View style={entry.isFinal ? styles.final : styles.partial}>
    <Text style={styles.speaker}>{entry.userId}:</Text>
    <Text>{entry.text}</Text>
    {entry.sentiment && (
    <Text style={styles.mood}>{entry.sentiment}</Text>
    )}
    </View>
    );
    }
    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 (e.g., 'happy', 'sad', 'angry')

    engagement?: number

    Engagement level from 0 (disengaged) to 1 (highly engaged)

    id: string

    Unique transcription segment identifier

    isFinal: boolean

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

    moodAnalyzedAt?: number

    Timestamp (ms since epoch) when the mood was analyzed

    moodConfidence?: number

    Confidence of the mood analysis from 0 to 1

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

    Sentiment classification, populated when mood analysis is enabled

    text: string

    Transcribed text

    timestamp: Date

    When this transcription was received

    userId: string

    User ID of the speaker