Skip to content

Commit

Permalink
fix code in readme (#33)
Browse files Browse the repository at this point in the history
typo in readme, ``TextToSpeechAsync`` is not being completely qualified in the path which causes confusion

Co-authored-by: Stephen Hodgson <[email protected]>
  • Loading branch information
AlizerUncaged and StephenHodgson authored Feb 15, 2024
1 parent 0036cd3 commit dd1a3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ var text = "The quick brown fox jumps over the lazy dog.";
var voice = (await api.VoicesEndpoint.GetAllVoicesAsync()).FirstOrDefault();
string fileName = "myfile.mp3";
using var outputFileStream = File.OpenWrite(fileName);
var voiceClip = await TextToSpeechAsync(text, voice,
var voiceClip = await api.TextToSpeechEndpoint.TextToSpeechAsync(text, voice,
partialClipCallback: async (partialClip) =>
{
// Write the incoming data to the output file stream.
Expand Down

0 comments on commit dd1a3e5

Please sign in to comment.