From 742e845d732d587c2c7bfd87ff22dc25746efd0d Mon Sep 17 00:00:00 2001 From: Craig Duncan Date: Tue, 19 Nov 2024 17:41:56 +0000 Subject: [PATCH] Add the new VoiceRssProvider#withVoice() method --- providers/voice-rss.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/providers/voice-rss.md b/providers/voice-rss.md index 881a227..b0c35a8 100644 --- a/providers/voice-rss.md +++ b/providers/voice-rss.md @@ -28,3 +28,12 @@ $provider = new VoiceRssProvider("sp39483478dhshdfs", "en-gb", -10); $provider = $provider->withSpeed(10); ~~~ + +The voice that the text is read with can be set via the constructor or the `withVoice()` method: +

Note that the voice must be compatible with the language.

+ +~~~php +$provider = new VoiceRssProvider("sp39483478dhshdfs", "en-gb", 0, "Harry"); + +$provider = $provider->withVoice("Harry"); +~~~