Optional
options: ClientOptionsReadonly
cacheReadonly
restFetch a category by its token. Categories are used to group TTS models together. NOTE: Voice conversion models are not grouped into categories so this method will not return any voice conversion model categories.
The token of the category to fetch.
The category or undefined if no category was found.
Fetch all category to model relationships. This is used to determine which models belong to which categories.
An object where the key is the category token and the value is an array of model tokens.
Fetch the TTS and W2L leaderboards.
The leaderboards.
Fetch the currently logged in user logged in via the login method.
The logged in user. Undefined if no user is logged in.
Fetch a model by its display name. Case insensitive.
This method will return the first model that contains the search string in its title.
This may not return the right model you are after if there are multiple models with the same substring,
so it is recommended to use fetchTtsModelByToken
if you know the token of the model.
The search string (case insensitive).
The model or undefined if no model was found.
Fetch an isolated TTS result by a result token. The result token can be found in the object returned from an inference, or on the website!
The token of the result to fetch.
The TTS result or undefined if no result was found.
Fetch a user profile by their username.
The username of the user to fetch. This is not the display name and is case sensitive.
The user profile, or undefined if the user does not exist.
Fetch a voice conversion model by its display name. Case insensitive.
This method will return the first model that contains the search string in its title.
This may not return the right model you are after if there are multiple models with the same substring,
so it is recommended to use fetchV2vModelByToken
if you know the token of the model.
The search string (case insensitive)
The model or undefined if no model was found
Fetch a voice conversion model by its token. This is tricker to locate, as it is not displayed in the UI or in the URL. You can find the token by inspecting the network requests on the FakeYou website or by using fetchV2vModelByName and making note of the token.
The token of the model to fetch.
The voice conversion model.
Login in with your provided credentials to take advantage of any potential premium benefits.
This uses session cookies to authenticate you.
API token authentication is not supported due to the lack of support for it in the API and it not being available to the public. If you work for FakeYou and can provide a token to test with and want help add support for it, please get in touch.
Your credentials to login with. Email is supported.
If the credentials are invalid.
Generated using TypeDoc
The FakeYou API client. This is the main entry point for the library. It provides methods to fetch data from the FakeYou API.
Example: ```ts import { Client } from 'fakeyou.ts'; const client = new Client(); // Optional await client.login({ username: 'username', password: 'password' }); ```