• Preparing search index...
  • The search index is not available
@google/genai
  • @google/genai
  • gaos/funcs/voices-create
  • voicesCreate

Function voicesCreate

  • voicesCreate(
        client: GoogleGenAICore,
        body: CreateVoiceRequest,
        api_version?: string,
        options?: RequestOptions,
    ): APIPromise<
        Result<
            VoiceOutput,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError,
        >,
    >

    Creates a custom voice from a natural-language prompt (VOICE_TYPE_PROMPTED) or from reference and consent audio recordings (VOICE_TYPE_REPLICATED).

    Parameters

    • client: GoogleGenAICore
    • body: CreateVoiceRequest
    • Optionalapi_version: string
    • Optionaloptions: RequestOptions

    Returns APIPromise<
        Result<
            VoiceOutput,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError,
        >,
    >

    • Defined in src/gaos/funcs/voices-create.ts:39

Settings

@google/genai
  • Loading...

Generated using TypeDoc