@squidcloud/client
    Preparing search index...

    Class AiAudioClient

    AiAudioClient provides methods for AI-driven audio processing, including speech transcription and text-to-speech synthesis.

    Index

    Methods

    • Converts a text input into a spoken audio file using AI-generated speech.

      Parameters

      • input: string

        The text to convert to speech.

      • options: OpenAiCreateSpeechOptions

        Options for customizing speech synthesis (e.g., voice, speed).

      Returns Promise<File>

      A Promise that resolves to an audio File containing the synthesized speech.

    • Transcribes the spoken content of an audio file into text.

      Parameters

      • file: File

        The audio file to transcribe.

      • options: WhisperOptions = ...

        Options specifying the transcription model and behavior.

      Returns Promise<string>

      A Promise that resolves to the transcribed text.