Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Dec 25, 2024
1 parent 9207fb4 commit 99f97a0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ ___
- [Text Generation](#Text-Generation)
- [Translation](#Translation)
- [Image Generation](#Image-Generation)
- [Text-to-Speech](#Text-to-Speech)
- [Contributing](#contributing)
- [License](#license)

Expand Down Expand Up @@ -1402,6 +1403,41 @@ For more details about the `text-to-image` task, check out its [dedicated page](

<br/>

## Text-to-Speech

Convert a text to an audio speech.

>[!NOTE]
> In the field of `text-to-speech` over 2,273 pre-trained models are available.
>
<br/>

**Asynchronously code example**

```Pascal
// uses HuggingFace, HuggingFace.Types, HuggingFace.Aggregator, FMX.HuggingFace.Tutorial;
HFTutorial.FileName := 'temp.mp3';
HuggingFace.WaitForModel := True;
HuggingFace.Text.TextToSpeech(
procedure (Params: TTextToSpeechParam)
begin
Params.Model('facebook/mms-tts-eng');
Params.Inputs('Hello and welcome. It''s nice to meet you.');
end,
function : TAsynTextToSpeech
begin
Result.Sender := HFTutorial;
Result.OnStart := Start;
Result.OnSuccess := Display;
Result.OnError := Display;
end);
```

<br/>

# Contributing

Pull requests are welcome. If you're planning to make a major change, please open an issue first to discuss your proposed changes.
Expand Down

0 comments on commit 99f97a0

Please sign in to comment.