# Model
Represents a FakeYou TTS model
# Constructor
new Model(client, data);
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
client | Client | The client that instantiated this | No |
data | APIData | The model API data | No |
# Properties
# algorithm
The algorithm type used in the model
# category
The category group in which the model is located
- Type: Group <CategoryToken, Category> or null
# categoryTokens
The list of category tokens in which the model is located
- Type: Array <CategoryToken> or null
# client
The client that instantiated this
- Type: Client
# count
The count of generated requests by the model
# createdAt
The date this model was created
# createdTimestamp
The time in seconds this model was created
# description
The model description (markdown style)
# features
The model featured info
- Type: ModelFeatures
# lang
The ISO 639-1 language code
- Type: String
# locate
The IEFT BCP 47 language tag
- Type: String
# name
A maybe suggested name for use in apps
# partial
Checks if has partial data
- Type: Boolean
# pipeline
The model text pipeline type
# setVisibility
The visibility of the model
- Type: Visibility or null
# title
The title of the model
- Type: String
# token
The model token
- Type: ModelToken
# type
The type of the model
- Type: String
# updatedAt
The date this model was updated
# updatedTimestamp
The time in seconds this model was updated
# user
The user who created the model
# userToken
The user token who created the model
# vocoder
The model's default pretrained vocoder
# Methods
# fetch()
Get all data about this model
# isVisible()
Checks if the category is visible to public
# modelURL()
Obtains the URL of FakeYou model page
- Return: String
# request(text)
Make a TTS request
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
text | String | The text to speech | No |