Skip to content

Commit

Permalink
Add the new VoiceRssProvider#withVoice() method
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan3dc committed Nov 19, 2024
1 parent 2061b90 commit 742e845
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions providers/voice-rss.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
<p class="message-api">Note that the voice must be <a href='https://www.voicerss.org/api/'>compatible</a> with the language.</p>

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

$provider = $provider->withVoice("Harry");
~~~

0 comments on commit 742e845

Please sign in to comment.