Class VoiceInfo
Interface for voice data retrieved from various AI APIs.
This interface defines the properties that all voice data should implement.
It is used to standardize the voice data across different AI providers.
Assembly: Glitch9.AIDevKit.dll
Syntax
public class VoiceInfo : IVoiceInfo, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable
Properties
|
Edit this page
View Source
Accent
The accent or regional variant of the voice (e.g. "American", "British", "Australian").
Useful for filtering voices by regional speech characteristics within a single language.
Declaration
public string Accent { get; set; }
Property Value
|
Edit this page
View Source
Age
The perceived age group of the voice (e.g. child, young adult, senior).
Helps select voices that match the intended character or demographic.
Returns null if the provider does not classify voice age.
Declaration
public VoiceAge? Age { get; set; }
Property Value
|
Edit this page
View Source
Api
Declaration
public Api Api { get; set; }
Property Value
|
Edit this page
View Source
Category
The broad use-case category this voice belongs to (e.g. news, conversational, customer service).
Used when filtering or recommending voices for a specific content domain.
Returns null if the provider does not categorize this voice.
Declaration
public VoiceCategory? Category { get; set; }
Property Value
|
Edit this page
View Source
CreatedAt
Unix timestamp indicating when this voice was created or indexed.
Declaration
public UnixTime? CreatedAt { get; set; }
Property Value
|
Edit this page
View Source
Description
Human-readable description of this voice.
Declaration
public string Description { get; set; }
Property Value
|
Edit this page
View Source
Gender
The perceived gender presentation of the voice (e.g. Male, Female, Neutral).
This is a perceptual attribute assigned by the provider and does not imply identity.
Defaults to Unknown if the provider does not specify.
Declaration
public VoiceGender Gender { get; set; }
Property Value
|
Edit this page
View Source
Id
Declaration
public string Id { get; set; }
Property Value
|
Edit this page
View Source
IsCustom
Returns false; this is a built-in provider voice, not a user-created custom voice.
Declaration
public bool IsCustom { get; }
Property Value
|
Edit this page
View Source
IsFree
Indicates whether this voice can be used without incurring additional charges.
Free voices may still be subject to usage limits defined by the provider.
Returns null if pricing information is not available.
Declaration
public bool? IsFree { get; set; }
Property Value
|
Edit this page
View Source
Locale
The locale (language and region) this voice is designed for (e.g. en-US, ja-JP).
Determines which language the voice can speak and how it handles pronunciation rules.
Declaration
public Locale Locale { get; set; }
Property Value
|
Edit this page
View Source
Name
Gets the name of this object.
Declaration
public string Name { get; set; }
Property Value
|
Edit this page
View Source
OwnedBy
Declaration
public string OwnedBy { get; set; }
Property Value
|
Edit this page
View Source
PreviewUri
URI pointing to a short audio clip that previews how this voice sounds.
Can be used to play a sample in the UI before committing to a voice selection.
Returns null if no preview clip is provided by the provider.
Declaration
public string PreviewUri { get; set; }
Property Value
|
Edit this page
View Source
Style
The expressive speaking style of the voice (e.g. cheerful, empathetic, newscast).
Some providers offer multiple style variants for a single base voice.
Returns null if the voice does not have a designated style.
Declaration
public VoiceStyle? Style { get; set; }
Property Value
Implements
Extension Methods