Skip to content

Commit

Permalink
docs: Document support for Flowery TTS tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
angelobreuer committed Aug 15, 2023
1 parent c331bc0 commit 4db1b8e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/docs/integrations/lavasrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,19 @@ var artworkUri = playlist.ArtworkUri;
var uri = playlist.Uri;
var type = playlist.Type;
```

### Flowery TTS

The Lavasrc plugin provides a TTS source manager which allows to play TTS audio using the [Flowery TTS](https://flowery.pw/docs/flowery/synthesize-v-1-tts-get/).

You can use the `GetTextToSpeechTrackAsync` method to resolve a TTS track.

```charp
var options = new TextToSpeechOptions(
Speed: 1.2F,
Format: TextToSpeechFormat.Mp3);
var track = await _trackManager
.GetTextToSpeechTrackAsync(query, options)
.ConfigureAwait(false);
```

0 comments on commit 4db1b8e

Please sign in to comment.