Skip to content

Commit

Permalink
fix file paths for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Nov 29, 2023
1 parent 306f02c commit c522cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ElevenLabs-DotNet-Tests/Test_Fixture_02_VoicesEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public async Task Test_05_AddVoice()
{
{ "accent", "american" }
};
var clipPath = Path.GetFullPath("..\\..\\..\\Assets\\test_sample_01.ogg");
var clipPath = Path.GetFullPath("../../../Assets/test_sample_01.ogg");
var result = await ElevenLabsClient.VoicesEndpoint.AddVoiceAsync("Test Voice", new[] { clipPath }, testLabels);
Assert.NotNull(result);
Console.WriteLine($"{result.Name}");
Expand All @@ -99,7 +99,7 @@ public async Task Test_06_EditVoice()
{ "accent", "american" },
{ "key", "value" }
};
var clipPath = Path.GetFullPath("..\\..\\..\\Assets\\test_sample_01.ogg");
var clipPath = Path.GetFullPath("../../../Assets/test_sample_01.ogg");
var result = await ElevenLabsClient.VoicesEndpoint.EditVoiceAsync(voiceToEdit, new[] { clipPath }, testLabels);
Assert.NotNull(result);
Assert.IsTrue(result);
Expand Down

0 comments on commit c522cde

Please sign in to comment.