# TTSResult
Represent a TTS result from FakeYou
# Constructor
new Model(client, data);
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
client | Client | The client that instantiated this | No |
data | APIData | The result API data | No |
# Properties
# attemps
The attempts that were generated to make this result
- Type: Number
# audioPath
The audio file path of this user
# client
The client that instantiated this
- Type: Client
# createdAt
The date this result was created
# createdTimestamp
The time in seconds this result was created
# duration
The duration in milliseconds of this result
# model
The model that was used to create it
- Type: Model
# modelToken
The model token that was used to create it
- Type: ModelToken
# partial
Checks if has partial data
- Type: Boolean
# setVisibility
The visibility of the result
- Type: Visibility or null
# spectrogramPath
The spectrogram file path of the result
# size
The audio size of this result
# text
The text that was used to generate the audio
- Type: String
# token
The result token
- Type: ResultToken
# type
The type of the result, equals to "tts"
- Type: String
# updatedAt
The date this result was updated
# updatedTimestamp
The time in seconds this result was updated
# vocoder
The maybe pretrained vocoder used in the result
# worker
The worker who generated it
# Methods
# audioURL()
The URL of audio file
# fetch()
Get all data about this model
# getAudio()
Get the wav audio file
# getSpectrogram()
Get the json spectrogram file
- Return: Promise <Spectrogram>
# resultURL()
The URL of the result
# spectrogramURL()
The URL of spectrogram file
# isVisible()
Checks if the category is visible to public