Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dclipca committed Dec 6, 2024
1 parent 64b76b3 commit 8a4ff45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions FakeYou.NET/Client/IFakeYouClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ public interface IFakeYouClient : IDisposable
event Action<FakeYouProgress>? OnProgress;

/// <summary>
/// Generates audio from text using the specified voice model
/// Generates audio from text using the specified voice model.
/// </summary>
/// <param name="modelToken">The FakeYou model token (e.g., TM:1234)</param>
/// <param name="text">The text to convert to speech</param>
/// <param name="cancellationToken">Optional cancellation token</param>
/// <returns>The generated audio data as a byte array</returns>
/// <returns>
/// WAV audio data as received from FakeYou API (44.1 kHz, stereo, 8-bit PCM).
/// Most modern applications expect 16-bit PCM, so format conversion may be
/// required using audio processing libraries like NAudio.
/// </returns>
Task<byte[]> GenerateAudioAsync(string modelToken, string text, CancellationToken cancellationToken = default);

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions FakeYou.NET/FakeYou.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<!-- Package Info -->
<PackageId>FakeYou.NET</PackageId>
<Title>FakeYou.NET</Title>
<Version>2.2.0</Version>
<Version>2.2.1</Version>
<Authors>Dan Clipca</Authors>
<Company>Sponge Engine</Company>
<Description>A modern .NET client library for the FakeYou text-to-speech API</Description>
<Description>A modern .NET client library for the FakeYou text-to-speech API.</Description>

<!-- Package Details -->
<PackageTags>tts;speech;fakeyou;text-to-speech;voice;audio</PackageTags>
Expand Down

0 comments on commit 8a4ff45

Please sign in to comment.