Table of Contents

Class Voice

Namespace
Glitch9.AIDevKit
public class Voice : AIAsset, IData
Inheritance
object
Voice
Implements
IData
Inherited Members
Extension Methods

Fields

ElevenLabs_Rachel

public const string ElevenLabs_Rachel = "21m00Tcm4TlvDq8ikWAM"

Field Value

string

Google_Zephyr

public const string Google_Zephyr = "zephyr"

Field Value

string

GroqCloud_Arista

public const string GroqCloud_Arista = "Arista-PlayAI"

Field Value

string

MicrosoftAzure_Luna

public const string MicrosoftAzure_Luna = "en-US-LunaNeural"

Field Value

string

OpenAI_Alloy

public const string OpenAI_Alloy = "alloy"

Field Value

string

SystemDefaults

public static readonly string[] SystemDefaults

Field Value

string[]

Properties

Age

The age category of the voice actor (e.g., Child, Adult, Senior).

public VoiceAge Age { get; }

Property Value

VoiceAge

Gender

The gender of the voice actor (e.g., Male, Female, Neutral).

public Gender Gender { get; }

Property Value

Gender

Language

The Unity SystemLanguage corresponding to the locale of this voice.

public SystemLanguage Language { get; }

Property Value

SystemLanguage

Locale

The locale setting of this voice (e.g., en-US, ko-KR).

public Locale Locale { get; }

Property Value

Locale

Name

The name of the voice actor.

public override string Name { get; }

Property Value

string

Methods

DefaultByApi(Api)

public static string DefaultByApi(Api api)

Parameters

api Api

Returns

string

FirstCandidate(params string[])

public static Voice FirstCandidate(params string[] candidateIds)

Parameters

candidateIds string[]

Returns

Voice

TryGet(out Voice, params string[])

public static bool TryGet(out Voice voice, params string[] candidateIds)

Parameters

voice Voice
candidateIds string[]

Returns

bool

Operators

implicit operator Voice(string)

public static implicit operator Voice(string voiceId)

Parameters

voiceId string

Returns

Voice