Speech Provider - v0.1.4
    Preparing search index...

    Interface Voice

    Represents a voice that can be used for speech synthesis.

    interface Voice {
        createUtterance(text: string): Utterance;
        description: null | string;
        id: string;
        lang: string;
        name: string;
        provider: VoiceProvider;
    }

    Implemented by

    Index

    Properties

    description: null | string

    Optional description of the voice

    id: string

    A unique identifier for the voice

    lang: string

    The language code for the voice

    name: string

    The display name of the voice

    provider: VoiceProvider

    The provider that owns this voice

    Methods

    • Create a new utterance with this voice.

      Parameters

      • text: string

        The text to speak

      Returns Utterance

      An utterance that can be started and stopped