Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

FakeYouNet is .NET library that allows you to interact with the FakeYou API easily

License

Notifications You must be signed in to change notification settings

luisllamasbinaburo/FakeYouNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FakeYouNet

FakeYouNet is .NET library that allows you to interact with the FakeYou API easily.

Made in NET6, compatible with Windows, Linux, Android and macOS.

Instalation

FakeYouNet is available in a Nuget Packet.

Install-Package FakeYouNet

Examples

Search voices

var client = new Client();
var voices = await client.SearchVoice("mario");

Generate TTS

var client = new Client();
var voice = await client.FindVoiceByTitle("mario");

var bytes = await client.MakeTTS(voice, "testing 1, 2, 3, testing");

Play TTS with NAudio

var client = new Client();
var voice = await client.FindVoiceByTitle("mario");

var bytes = await client.MakeTTS(voice, "testing 1, 2, 3, testing");

using MemoryStream memoryStream = new MemoryStream(audioData);
using WaveFileReader reader = new WaveFileReader(ms);
using WaveOutEvent outputDevice = new WaveOutEvent();
outputDevice.Init(reader);
outputDevice.Play();

Download TTS as wav

var client = new Client();
var voice = await client.FindVoiceByTitle("mario");

await client.DownloadMakeTTS(voice, "testing 1, 2, 3, testing", "test.wav");

TODO

  • Get categories and voices
  • Cache categories and voices
  • Get TTS bytes with timeout
  • Download TTS as wav withtimeout
  • Login free account
  • Premium account
  • LeaderBoard
  • Edit client

About

FakeYouNet is .NET library that allows you to interact with the FakeYou API easily

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages