Skip to content

Commit 5985cb2

Browse files
committed
feat: add language to PlayTextToSpeech snippet
1 parent c23d95a commit 5985cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DotNetCliCodeSnippets/Voice/PlayTextToSpeech.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public async Task Execute()
2020
var credentials = Credentials.FromAppIdAndPrivateKeyPath(vonageApplicationId, vonagePrivateKeyPath);
2121
var client = new VonageClient(credentials);
2222

23-
var command = new TalkCommand() { Text = text};
23+
var command = new TalkCommand() { Text = text, Language = "en-US"};
2424

2525
var response = await client.VoiceClient.StartTalkAsync(uuid, command);
2626

0 commit comments

Comments
 (0)