Class Voice
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetEntityId()
Object.GetInstanceID()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.name
Object.hideFlags
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
[JsonConverter(typeof(VoiceConverter))]
[CreateAssetMenu(menuName = "AI DevKit/AI Voice", order = 2057)]
public class Voice : AIResourceBase, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable
Properties
| Edit this page View SourceAge
The age category of the voice actor (e.g., Child, Adult, Senior).
Declaration
public VoiceAge Age { get; }
Property Value
| Type | Description |
|---|---|
| VoiceAge |
Gender
The gender of the voice actor (e.g., Male, Female, Neutral).
Declaration
public VoiceGender Gender { get; }
Property Value
| Type | Description |
|---|---|
| VoiceGender |
IsCustom
Indicates whether the asset is user-customized or not. If it's a model, it means the model is a fine-tuned version of a base model. If it's a voice, it means the voice is a custom voice created by the user.
Declaration
public override bool IsCustom { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceLanguage
The Unity UnityEngine.SystemLanguage corresponding to the locale of this voice.
Declaration
public SystemLanguage Language { get; }
Property Value
| Type | Description |
|---|---|
| SystemLanguage |
Locale
The locale setting of this voice (e.g., en-US, ko-KR).
Declaration
public Locale Locale { get; }
Property Value
| Type | Description |
|---|---|
| Locale |
Metadata
Additional metadata associated with the voice.
Declaration
public SerializableDictionary<string, string> Metadata { get; }
Property Value
| Type | Description |
|---|---|
| SerializableDictionary<string, string> |
Name
The name of the voice actor.
Declaration
public override string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
| Edit this page View SourceDefaultByApi(Api)
Declaration
public static string DefaultByApi(Api api)
Parameters
| Type | Name | Description |
|---|---|---|
| Api | api |
Returns
| Type | Description |
|---|---|
| string |
FirstValid(params string[])
Declaration
public static Voice FirstValid(params string[] candidateIds)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | candidateIds |
Returns
| Type | Description |
|---|---|
| Voice |
FirstValidId(params string[])
Declaration
public static string FirstValidId(params string[] candidateIds)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | candidateIds |
Returns
| Type | Description |
|---|---|
| string |
TryGet(out Voice, params string[])
Declaration
public static bool TryGet(out Voice voice, params string[] candidateIds)
Parameters
| Type | Name | Description |
|---|---|---|
| Voice | voice | |
| string[] | candidateIds |
Returns
| Type | Description |
|---|---|
| bool |
Operators
| Edit this page View Sourceimplicit operator Voice(string)
Declaration
public static implicit operator Voice(string voiceId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | voiceId |
Returns
| Type | Description |
|---|---|
| Voice |